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) :
new LegacyKernelServicesImpl(container, svc, persister, svc.getRootRegistration(),
new OperationValidator(svc.getRootRegistration()), legacyModelVersion, svc.isSuccessfulBoot(), svc.getBootError(), extensionRegistry, ContentRepository.Factory.create(repositoryFile));
return kernelServices;
}