private function createConfigObject($name, $data, $json)
    {
        // Load corresponding class and get config array
        $class_name = self::class . '\\Config' . ucfirst(strtolower($name));

        if (!class_exists($class_name)) {
            $class_name = self::class . '\\ConfigData';
        }

        return new $class_name($data, $json);
    }