Source:
public void initializeDomainConfigurationPersister(boolean slave) { if (domainPersister != null) { throw HostControllerLogger.ROOT_LOGGER.configurationPersisterAlreadyInitialized(); } final File configDir = environment.getDomainConfigurationDir(); ConfigurationFile domainConfigurationFile = null; if (slave) { if (environment.isUseCachedDc() || environment.isBackupDomainFiles()) { domainPersister = ConfigurationPersisterFactory.createRemoteBackupDomainXmlConfigurationPersister(configDir, executorService, extensionRegistry); } else { domainPersister = ConfigurationPersisterFactory.createTransientDomainXmlConfigurationPersister(executorService, extensionRegistry); } } else { domainConfigurationFile = getStandardDomainConfigurationFile(); final HostRunningModeControl runningModeControl = environment.getRunningModeControl(); if (runningModeControl.isReloaded()) { if (environment.isBackupDomainFiles()) { ConfigurationFile cachedRemote = getBackupDomainConfigurationFile(); File cachedRemoteFile = cachedRemote.getBootFile(); if (cachedRemoteFile.exists() && cachedRemoteFile.lastModified() > domainConfigurationFile.getBootFile().lastModified()) { domainConfigurationFile = cachedRemote; } } domainConfigurationFile.resetBootFile( runningModeControl.isUseCurrentDomainConfig(), runningModeControl.getAndClearNewDomainBootFileName()); } domainPersister = ConfigurationPersisterFactory.createDomainXmlConfigurationPersister(domainConfigurationFile, executorService, extensionRegistry); } environment.setDomainConfigurationFile(domainConfigurationFile); this.slave = slave; }

Target:
public void initializeDomainConfigurationPersister(boolean slave) { if (domainPersister != null) { throw HostControllerLogger.ROOT_LOGGER.configurationPersisterAlreadyInitialized(); } final File configDir = environment.getDomainConfigurationDir(); ConfigurationFile domainConfigurationFile = null; if (slave) { if (environment.isBackupDomainFiles() || environment.isUseCachedDc()) { domainConfigurationFile = getBackupDomainConfigurationFile(); domainPersister = ConfigurationPersisterFactory.createRemoteBackupDomainXmlConfigurationPersister(configDir, executorService, extensionRegistry); } else { domainPersister = ConfigurationPersisterFactory.createTransientDomainXmlConfigurationPersister(executorService, extensionRegistry); } } else { domainConfigurationFile = getStandardDomainConfigurationFile(); final HostRunningModeControl runningModeControl = environment.getRunningModeControl(); if (runningModeControl.isReloaded()) { if (environment.isBackupDomainFiles()) { ConfigurationFile cachedRemote = getBackupDomainConfigurationFile(); File cachedRemoteFile = cachedRemote.getBootFile(); if (cachedRemoteFile.exists() && cachedRemoteFile.lastModified() > domainConfigurationFile.getBootFile().lastModified()) { domainConfigurationFile = cachedRemote; } } domainConfigurationFile.resetBootFile( runningModeControl.isUseCurrentDomainConfig(), runningModeControl.getAndClearNewDomainBootFileName()); } domainPersister = ConfigurationPersisterFactory.createDomainXmlConfigurationPersister(domainConfigurationFile, executorService, extensionRegistry); } environment.setDomainConfigurationFile(domainConfigurationFile); this.slave = slave; }