private function createClientRetryMap(
        ContainerBuilder $container,
        string $name,
        array $repositoryConfiguration
    ) {
        if (!$this->repositoryIsHttp($repositoryConfiguration)) {
            return;
        }

        $clientRetryMapName = rtrim("apisearch.retry_map_$name", '.');
        $container
                ->register($clientRetryMapName, RetryMap::class)
                ->setFactory([
                    RetryMap::class,
                    'createFromArray',
                ])
                ->setArgument(0, $repositoryConfiguration['http']['retry_map']);
    }