Buggy code:
public final class DomainControllerService implements Service < DomainController > { private static final Logger log = Logger . getLogger ( "org.jboss.as.domain.controller" ) ; private final ExtensibleConfigurationPersister configurationPersister ; private final FileRepository localRepository ; private final InjectedValue < ScheduledExecutorService > scheduledExecutorService = new InjectedValue < ScheduledExecutorService > ( ) ; private final InjectedValue < MasterDomainControllerClient > masterDomainControllerClient = new InjectedValue < MasterDomainControllerClient > ( ) ; private final InjectedValue < ServerStartupTransactionalProxyController > hostController = new InjectedValue < ServerStartupTransactionalProxyController > ( ) ; private final String localHostName ; private final boolean backupDomainFiles ; private final boolean useCachedDc ; private DomainControllerSlave controller ; public DomainControllerService ( final ExtensibleConfigurationPersister configurationPersister , final String localHostName , final FileRepository localRepository , final boolean backupDomainFiles , final boolean useCachedDc ) { } @ Override public synchronized void start ( final StartContext context ) throws StartException { } @ Override public synchronized void stop ( final StopContext context ) { } @ Override public synchronized DomainController getValue ( ) throws IllegalArgumentException , IllegalStateException { } public Injector < ScheduledExecutorService > getScheduledExecutorServiceInjector ( ) { } public Injector < ServerStartupTransactionalProxyController > getHostControllerServiceInjector ( ) { } public Injector < MasterDomainControllerClient > getMasterDomainControllerClientInjector ( ) { } private DomainControllerSlave startMasterDomainController ( ) throws StartException { } private DomainControllerSlave startSlaveDomainController ( MasterDomainControllerClient masterClient ) throws StartException { } private DomainControllerSlave startRemoteSlaveDomainController ( MasterDomainControllerClient masterClient ) throws StartException { } private DomainControllerSlave startLocalCopySlaveDomainController ( MasterDomainControllerClient masterClient ) throws StartException { } private DomainModel loadLocalDomainModel ( ) throws StartException { DomainModelImpl domainModel = new DomainModelImpl ( configurationPersister , hostController . getValue ( ) ) ; final List < ModelNode > updates ; try { updates = configurationPersister . load ( ) ; } catch ( final Exception e ) { DomainControllerService . log . error ( "failed<seq2seq4repair_space>to<seq2seq4repair_space>start<seq2seq4repair_space>domain<seq2seq4repair_space>controller" , e ) ; throw new StartException ( e ) ; } final AtomicInteger count = new AtomicInteger ( 1 ) ; final ResultHandler resultHandler = new ResultHandler ( ) { @ Override public void handleResultFragment ( final String [ ] location , final ModelNode result ) { } @ Override public void handleResultComplete ( ) { if ( ( count . decrementAndGet ( ) ) == 0 ) { } } @ Override public void handleFailed ( final ModelNode failureDescription ) { if ( ( count . decrementAndGet ( ) ) == 0 ) { } } @ Override public void handleCancellation ( ) { if ( ( count . decrementAndGet ( ) ) == 0 ) { } } } ; for ( ModelNode update : updates ) { count . incrementAndGet ( ) ; <START_BUG> controller . execute ( Factory . create ( update ) . build ( ) , resultHandler ) ; <END_BUG> } if ( ( count . decrementAndGet ( ) ) == 0 ) { } return domainModel ; } private void backupDomainFiles ( ) { } private void copyFile ( File src , File dest ) throws IOException { } }

Fix:
domainModel . execute ( Factory . create ( update ) . build ( ) , resultHandler ) ;