Buggy code:
public class HostControllerConfigurationPersister implements ExtensibleConfigurationPersister { private final HostControllerEnvironment environment ; private ExtensibleConfigurationPersister domainPersister ; private final ExtensibleConfigurationPersister hostPersister ; private final LocalHostControllerInfo hostControllerInfo ; private final ExecutorService executorService ; private final ExtensionRegistry extensionRegistry ; private Boolean slave ; public HostControllerConfigurationPersister ( final HostControllerEnvironment environment , final LocalHostControllerInfo localHostControllerInfo , final ExecutorService executorService , final ExtensionRegistry extensionRegistry ) { } public void initializeDomainConfigurationPersister ( boolean slave ) { if ( ( domainPersister ) != null ) { throw HostControllerMessages . MESSAGES . configurationPersisterAlreadyInitialized ( ) ; } final File configDir = environment . getDomainConfigurationDir ( ) ; if ( slave ) { if ( environment . isBackupDomainFiles ( ) ) { domainPersister = ConfigurationPersisterFactory . createRemoteBackupDomainXmlConfigurationPersister ( configDir , executorService , extensionRegistry ) ; } else if ( environment . isUseCachedDc ( ) ) { domainPersister = ConfigurationPersisterFactory . createCachedRemoteDomainXmlConfigurationPersister ( configDir , executorService , extensionRegistry ) ; } else { domainPersister = ConfigurationPersisterFactory . createTransientDomainXmlConfigurationPersister ( executorService , extensionRegistry ) ; } } else { final ConfigurationFile configurationFile = environment . getDomainConfigurationFile ( ) ; if ( environment . getRunningModeControl ( ) . isReloaded ( ) ) { configurationFile . resetBootFile ( environment . getRunningModeControl ( ) . isUseCurrentDomainConfig ( ) ) ; } domainPersister = ConfigurationPersisterFactory . createDomainXmlConfigurationPersister ( configurationFile , executorService , extensionRegistry ) ; } <START_BUG> this . slave = Boolean . valueOf ( slave ) ; <END_BUG> } public boolean isSlave ( ) { } public ExtensibleConfigurationPersister getDomainPersister ( ) { } public ExtensibleConfigurationPersister getHostPersister ( ) { } @ Override public PersistenceResource store ( ModelNode model , Set < PathAddress > affectedAddresses ) throws ConfigurationPersistenceException { } @ Override public void marshallAsXml ( ModelNode model , OutputStream output ) throws ConfigurationPersistenceException { } @ Override public List < ModelNode > load ( ) throws ConfigurationPersistenceException { } @ Override public void successfulBoot ( ) throws ConfigurationPersistenceException { } @ Override public String snapshot ( ) throws ConfigurationPersistenceException { } @ Override public SnapshotInfo listSnapshots ( ) { } @ Override public void deleteSnapshot ( String name ) { } @ Override public void registerSubsystemWriter ( String name , XMLElementWriter < SubsystemMarshallingContext > writer ) { } @ Override public void unregisterSubsystemWriter ( String name ) { } @ Override @ Deprecated @ SuppressWarnings ( "deprecation" ) public void registerSubsystemDeploymentWriter ( String name , XMLElementWriter < SubsystemMarshallingContext > writer ) { } @ Override @ Deprecated @ SuppressWarnings ( "deprecation" ) public void unregisterSubsystemDeploymentWriter ( String name ) { } }

Fix:
this . slave = slave ;