final FileRepository fileRepository, final boolean backupDomainFiles, final boolean useCachedDc) {
final String hostName = host.get(NAME).asString();
final String mgmtNetwork = host.get(MANAGEMENT_INTERFACES, NATIVE_INTERFACE, INTERFACE).asString();
final int mgmtPort = host.get(MANAGEMENT_INTERFACES, NATIVE_INTERFACE, PORT).asInt();
serviceTarget.addService(HostRegistryService.SERVICE_NAME, new HostRegistryService()).install();
final File configDir = environment.getDomainConfigurationDir();
final ExtensibleConfigurationPersister domainConfigurationPersister = createDomainConfigurationPersister(configDir, isSlave);
DeploymentRepository deploymentRepository = new DomainDeploymentRepository(environment.getDomainDeploymentDir());
final DomainControllerService dcService = new DomainControllerService(domainConfigurationPersister, hostName, mgmtPort, deploymentRepository, fileRepository, backupDomainFiles, useCachedDc);