private function loadCacheWarming(ContainerBuilder $container)
    {
        // Root cache warmer
        $warmerName = Utility::getAliasedName('metadata.cache.warmer');
        $definition = $this->createCacheWarmer($container);
        $container->setDefinition($warmerName, $definition);

        // Bundle wrapped cache warmer
        $definition = $this->createBundleCacheWarmer($warmerName);
        $container->setDefinition(Utility::getAliasedName('bundle.cache.warmer'), $definition);

        // Cache clear command
        $definition = $this->createCacheClearCommand($warmerName);
        $container->setDefinition(Utility::getAliasedName('command.metadata.cache_clear'), $definition);

        return $this;
    }