.addInjection(managementCommunicationService.getExecutorServiceInjector(), Executors.newCachedThreadPool())
.addInjection(managementCommunicationService.getThreadFactoryInjector(), Executors.defaultThreadFactory())
.setInitialMode(ServiceController.Mode.ACTIVE)
.install();
ServerControllerOperationHandlerService operationHandlerService = new ServerControllerOperationHandlerService();
serviceTarget.addService(ServerControllerOperationHandlerService.SERVICE_NAME, operationHandlerService)
.addDependency(ManagementCommunicationService.SERVICE_NAME, ManagementCommunicationService.class, operationHandlerService.getManagementCommunicationServiceValue())
.addDependency(Services.JBOSS_SERVER_CONTROLLER, ModelController.class, operationHandlerService.getModelControllerValue())
.setInitialMode(ServiceController.Mode.ACTIVE)
.install();
}
});
} else {