Buggy code:
public class OperationCoordinatorStepHandler { private final LocalHostControllerInfo localHostControllerInfo ; private final Map < String , NewProxyController > hostProxies ; private final Map < String , NewProxyController > serverProxies ; private final OperationSlaveStepHandler localSlaveHandler ; private volatile ExecutorService executorService ; OperationCoordinatorStepHandler ( final LocalHostControllerInfo localHostControllerInfo , final Map < String , NewProxyController > hostProxies , final Map < String , NewProxyController > serverProxies , final OperationSlaveStepHandler localSlaveHandler ) { } void execute ( NewOperationContext context , ModelNode operation ) throws OperationFailedException { } public void setExecutorService ( ExecutorService executorService ) { } private ExecutorService getExecutorService ( ) { } private void routetoMasterDomainController ( NewOperationContext context , ModelNode operation ) { } private void executeDirect ( NewOperationContext context , ModelNode operation ) throws OperationFailedException { } private void executeTwoPhaseOperation ( NewOperationContext context , ModelNode operation , OperationRouting routing ) throws OperationFailedException { System . out . println ( "Executing<seq2seq4repair_space>two-phase" ) ; DomainOperationContext overallContext = new DomainOperationContext ( localHostControllerInfo ) ; ModelNode rolloutPlan = ( ( operation . hasDefined ( OPERATION_HEADERS ) ) && ( operation . get ( OPERATION_HEADERS ) . has ( ROLLOUT_PLAN ) ) ) ? operation . get ( OPERATION_HEADERS ) . remove ( ROLLOUT_PLAN ) : new ModelNode ( ) ; context . addStep ( new DomainFinalResultHandler ( overallContext ) , MODEL ) ; final ModelNode slaveOp = operation . clone ( ) ; storeDeploymentContent ( slaveOp , context ) ; slaveOp . get ( OPERATION_HEADERS , EXECUTE_FOR_COORDINATOR ) . set ( true ) ; slaveOp . protect ( ) ; String localHostName = localHostControllerInfo . getLocalHostName ( ) ; if ( routing . isLocalCallNeeded ( localHostName ) ) { ModelNode localResponse = overallContext . getCoordinatorResult ( ) ; <START_BUG> localSlaveHandler . addSteps ( context , slaveOp , localResponse , false ) ; <END_BUG> } if ( localHostControllerInfo . isMasterDomainController ( ) ) { Set < String > remoteHosts = new HashSet < String > ( routing . getHosts ( ) ) ; boolean global = ( remoteHosts . size ( ) ) == 0 ; remoteHosts . remove ( localHostName ) ; if ( ( ( remoteHosts . size ( ) ) > 0 ) || global ) { context . acquireControllerLock ( ) ; if ( global ) { remoteHosts . addAll ( hostProxies . keySet ( ) ) ; } Map < String , NewProxyController > remoteProxies = new HashMap < String , NewProxyController > ( ) ; for ( String host : remoteHosts ) { NewProxyController proxy = hostProxies . get ( host ) ; if ( proxy != null ) { remoteProxies . put ( host , proxy ) ; } else if ( ! global ) { throw new OperationFailedException ( new ModelNode ( ) . set ( String . format ( "Operation<seq2seq4repair_space>targets<seq2seq4repair_space>host<seq2seq4repair_space>%s<seq2seq4repair_space>but<seq2seq4repair_space>that<seq2seq4repair_space>host<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>registered" , host ) ) ) ; } } context . addStep ( slaveOp , new DomainSlaveHandler ( remoteProxies , overallContext , executorService ) , DOMAIN ) ; } } context . addStep ( new DomainRolloutStepHandler ( hostProxies , serverProxies , overallContext , rolloutPlan , getExecutorService ( ) ) , DOMAIN ) ; context . completeStep ( ) ; } private void storeDeploymentContent ( ModelNode opNode , NewOperationContext context ) throws OperationFailedException { } private boolean hasStorableContent ( ModelNode operation ) { } private static final List < String > CONTENT_ADDITION_PARAMETERS = Arrays . asList ( INPUT_STREAM_INDEX , BYTES , URL ) ; private static boolean hasValidContentAdditionParameterDefined ( ModelNode item ) { } }

Fix:
localSlaveHandler . addSteps ( context , slaveOp . clone ( ) , localResponse , false ) ;