protected function getConfigFromName(string $name): array
    {
        $adapter = $this->resolvedOptions[static::CONFIG_LIST_NAME] ?? [];

        if (isset($adapter[$name]) && \is_array($adapter[$name])) {
            $config         = $adapter[$name];
            $config['name'] = $name;

            return $config;
        }

        return ['name' => $name];
    }