protected TopLevelDependencyManagementServices createGlobalDependencyManagementServices() {
   ClassLoader coreImplClassLoader = get(ClassLoaderRegistry.class).getCoreImplClassLoader();
   ServiceLocator serviceLocator = new ServiceLocator(coreImplClassLoader);
   return serviceLocator.getFactory(TopLevelDependencyManagementServices.class).newInstance();
 }
 private void makeServiceVisible(
     ServiceLocator locator, FilteringClassLoader classLoader, Class<?> serviceType) {
   classLoader.allowClass(locator.getFactory(serviceType).getImplementationClass());
   classLoader.allowResource("META-INF/services/" + serviceType.getName());
 }