ServiceBuilder<ModelController> builder = target.addService(Services.JBOSS_SERVER_CONTROLLER, svc);
builder.addDependency(ContentRepository.SERVICE_NAME, ContentRepository.class, testModelControllerFactory.getContentRepositoryInjector(svc));
builder.install();
//sharedState = svc.state;
svc.waitForSetup();
//processState.setRunning();
AbstractKernelServicesImpl kernelServices = legacyModelVersion == null ?
new MainKernelServicesImpl(container, svc, persister, svc.getRootRegistration(),
new OperationValidator(svc.getRootRegistration()), legacyModelVersion, svc.isSuccessfulBoot(), svc.getBootError(), extensionRegistry) :