Logger.getLogger("org.jboss.as").infof("creating native management service using network interface (%s) port (%s)", interfaceName, port);
final ThreadGroup threadGroup = new ThreadGroup("ManagementCommunication-threads");
final ThreadFactory threadFactory = new JBossThreadFactory(threadGroup, Boolean.FALSE, null, "%G - %t", null, null, AccessController.getContext());
final ManagementCommunicationService managementCommunicationService = new ManagementCommunicationService();
serviceTarget.addService(ManagementCommunicationService.SERVICE_NAME, managementCommunicationService)
.addDependency(
NetworkInterfaceService.JBOSS_NETWORK_INTERFACE.append(interfaceName),
NetworkInterfaceBinding.class, managementCommunicationService.getInterfaceInjector())
.addInjection(managementCommunicationService.getPortInjector(), port)
.addInjection(managementCommunicationService.getExecutorServiceInjector(), Executors.newCachedThreadPool(threadFactory))
.addInjection(managementCommunicationService.getThreadFactoryInjector(), threadFactory)
.setInitialMode(ServiceController.Mode.ACTIVE)
.install();
ServerControllerOperationHandlerService operationHandlerService = new ServerControllerOperationHandlerService();
serviceTarget.addService(ServerControllerOperationHandlerService.SERVICE_NAME, operationHandlerService)