final BatchBuilder batchBuilder = serviceActivatorContext.getBatchBuilder();
final XMLMapper mapper = XMLMapper.Factory.create();
extensionRegistrar.registerStandardDomainReaders(mapper);
final DomainController domainController = new DomainController();
batchBuilder.addService(DomainController.SERVICE_NAME, domainController)
.addInjection(domainController.getXmlMapperInjector(), mapper)
.addInjection(domainController.getDomainConfigDirInjector(), environment.getDomainConfigurationDir())
.addInjection(domainController.getDomainDeploymentsDirInjector(), environment.getDomainDeploymentDir())
.addDependency(SERVICE_NAME_BASE.append("executor"), ScheduledExecutorService.class, domainController.getScheduledExecutorServiceInjector());
final DomainControllerOperationHandler domainControllerOperationHandler = new DomainControllerOperationHandler();
batchBuilder.addService(DomainControllerOperationHandler.SERVICE_NAME, domainControllerOperationHandler)
.addDependency(DomainController.SERVICE_NAME, DomainController.class, domainControllerOperationHandler.getDomainControllerInjector())
.addDependency(SERVICE_NAME_BASE.append("executor"), ScheduledExecutorService.class, domainControllerOperationHandler.getExecutorServiceInjector())