Buggy code:
public class ServerOperationsResolverHandler implements OperationStepHandler { public static final String DOMAIN_PUSH_TO_SERVERS = "push-to-servers" ; public static final String OPERATION_NAME = "server-operation-resolver" ; private static final ServerOperationProvider NO_OP_PROVIDER = new HostControllerExecutionSupport . ServerOperationProvider ( ) { @ Override public Map < Set < ServerIdentity > , ModelNode > getServerOperations ( ModelNode domainOp , PathAddress address ) { } } ; private final ServerOperationResolver resolver ; private final HostControllerExecutionSupport hostControllerExecutionSupport ; private final PathAddress originalAddress ; private final ImmutableManagementResourceRegistration originalRegistration ; private final ModelNode localResponse ; ServerOperationsResolverHandler ( final ServerOperationResolver resolver , final HostControllerExecutionSupport hostControllerExecutionSupport , final PathAddress originalAddress , final ImmutableManagementResourceRegistration originalRegistration , final ModelNode response ) { } @ Override public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { if ( context . hasFailureDescription ( ) ) { localResponse . get ( FAILURE_DESCRIPTION ) . set ( context . getFailureDescription ( ) ) ; context . setRollbackOnly ( ) ; } else { boolean nullDomainOp = ( hostControllerExecutionSupport . getDomainOperation ( ) ) == null ; final boolean pushToServers ; if ( operation . hasDefined ( OPERATION_HEADERS ) ) { pushToServers = operation . get ( OPERATION_HEADERS , ServerOperationsResolverHandler . DOMAIN_PUSH_TO_SERVERS ) . asBoolean ( false ) ; } else { pushToServers = false ; } HostControllerExecutionSupport . ServerOperationProvider provider = ( nullDomainOp ) ? ServerOperationsResolverHandler . NO_OP_PROVIDER : new HostControllerExecutionSupport . ServerOperationProvider ( ) { @ Override public Map < Set < ServerIdentity > , ModelNode > getServerOperations ( ModelNode domainOp , PathAddress address ) { Map < Set < ServerIdentity > , ModelNode > ops = ServerOperationsResolverHandler . this . getServerOperations ( context , domainOp , address , pushToServers ) ; for ( Map . Entry < Set < ServerIdentity > , ModelNode > entry : ops . entrySet ( ) ) { ModelNode op = entry . getValue ( ) ; if ( ( ( op . hasDefined ( OPERATION_HEADERS ) ) && ( op . get ( OPERATION_HEADERS ) . hasDefined ( CALLER_TYPE ) ) ) && ( op . get ( OPERATION_HEADERS , CALLER_TYPE ) . asString ( ) . equals ( USER ) ) ) { op . get ( OPERATION_HEADERS ) . remove ( CALLER_TYPE ) ; } } return ops ; } } ; Map < ServerIdentity , ModelNode > serverOps = hostControllerExecutionSupport . getServerOps ( provider ) ; ModelNode domainOpResult = ( nullDomainOp ) ? new ModelNode ( IGNORED ) : context . hasResult ( ) ? context . getResult ( ) : new ModelNode ( ) ; ModelNode overallResult = ( ( localResponse ) == null ) ? context . getResult ( ) : localResponse . get ( RESULT ) ; createOverallResult ( serverOps , domainOpResult , overallResult ) ; if ( DomainControllerLogger . HOST_CONTROLLER_LOGGER . isTraceEnabled ( ) ) { DomainControllerLogger . HOST_CONTROLLER_LOGGER . tracef ( "%s<seq2seq4repair_space>responseNode<seq2seq4repair_space>is<seq2seq4repair_space>%s" , getClass ( ) . getSimpleName ( ) , overallResult ) ; } } <START_BUG> context . completeStep ( ) ; <END_BUG> } private Map < Set < ServerIdentity > , ModelNode > getServerOperations ( OperationContext context , ModelNode domainOp , PathAddress domainOpAddress , boolean pushToServers ) { } private void createOverallResult ( final Map < ServerIdentity , ModelNode > serverOps , final ModelNode localResult , final ModelNode overallResult ) { } }

Fix:
context . stepCompleted ( ) ;