.addDependency(PathManagerService.SERVICE_NAME, PathManager.class, service.getPathManagerInjector())
.addDependency(DependencyType.OPTIONAL, ServiceName.JBOSS.append("mbean", "server"), MBeanServer.class, service.getMbeanServer())
.setInitialMode(Mode.ON_DEMAND)
.install());
final DistributedCacheManagerFactory factory = new DistributedCacheManagerFactoryService().getValue();
if (factory != null) {
final InjectedValue<WebServer> server = new InjectedValue<WebServer>();
newControllers.add(target.addService(DistributedCacheManagerFactoryService.JVM_ROUTE_REGISTRY_ENTRY_PROVIDER_SERVICE_NAME, new JvmRouteRegistryEntryProviderService(server))
.addDependency(WebSubsystemServices.JBOSS_WEB, WebServer.class, server)
.setInitialMode(Mode.ON_DEMAND)
.install());
newControllers.addAll(factory.installServices(target));
}
}