public function loadFromRegistry(Registry $registry)
    {
        foreach ($registry as $key => $serviceProvider) {
            $this->loadServiceProviderFactories($serviceProvider, $key);
        }
        foreach ($registry as $key => $serviceProvider) {
            $this->loadServiceProviderExtensions($serviceProvider, $key);
        }
    }