private function createClassInstance($className)
    {
        if (empty($className)) {
            return new stdClass();
        }

        try {
            $refClass = new ReflectionClass($className);
            return $refClass->newInstance();
        } catch (Exception $e) {
            throw new DeserializationException("Class [$className] could not be instantiated");
        }
    }