.addInjection(service.getTempDirInjector(), environment.getDomainTempDir().getAbsolutePath())
.addInjection(service.getPortInjector(), port)
.addInjection(service.getSecurePortInjector(), securePort)
.addInjection(service.getExecutorServiceInjector(), Executors.newCachedThreadPool(httpMgmtThreads));
if (securityRealm != null) {
<BUG>builder.addDependency(SecurityRealmService.BASE_SERVICE_NAME.append(securityRealm), SecurityRealmService.class, service.getSecurityRealmInjector());
}</BUG>
builder.setInitialMode(ServiceController.Mode.ACTIVE)
.install();
}

.addInjection(service.getTempDirInjector(), environment.getDomainTempDir().getAbsolutePath())
.addInjection(service.getPortInjector(), port)
.addInjection(service.getSecurePortInjector(), securePort)
.addInjection(service.getExecutorServiceInjector(), Executors.newCachedThreadPool(httpMgmtThreads));
if (securityRealm != null) {
builder.addDependency(SecurityRealmService.BASE_SERVICE_NAME.append(securityRealm), SecurityRealmService.class, service.getSecurityRealmInjector());
} else {
Logger.getLogger("org.jboss.as").warn("No security realm defined for http management service, all access will be unrestricted.");
}
builder.setInitialMode(ServiceController.Mode.ACTIVE)
.install();
}
