private function loadKernel($adapterName, $configName, $debug, ContainerBuilder $container)
    {
        $definition = new Definition(
            Utility::getLibraryClass('Rest\RestKernel'),
            [
                new Reference($adapterName),
                new Reference($configName),
            ]
        );
        $definition->addMethodCall('enableDebug', [$debug]);
        $container->setDefinition(Utility::getAliasedName('rest.kernel'), $definition);
    }