private function loadConfiguration($name, array $restConfig, ContainerBuilder $container)
    {
        $definition = new Definition(
            Utility::getLibraryClass('Rest\RestConfiguration'),
            [
                new Reference(Utility::getAliasedName('util.validator')),
            ]
        );
        $definition->setPublic(false);

        $endpoint = $restConfig['root_endpoint'];
        $definition->addMethodCall('setRootEndpoint', [$endpoint]);

        $container->setDefinition($name, $definition);
        $container->setParameter(Utility::getAliasedName('rest.root_endpoint'), $endpoint);
        return $this;
    }