Source:
<code>HostControllerExecutionSupport addSteps(final OperationContext context, final ModelNode operation, final MultiPhaseLocalContext multiPhaseLocalContext) throws OperationFailedException { final PathAddress originalAddress = PathAddress.pathAddress(operation.get(OP_ADDR)); final ImmutableManagementResourceRegistration originalRegistration = context.getResourceRegistration(); final ModelNode localResponse = multiPhaseLocalContext.getLocalResponse(); final HostControllerExecutionSupport hostControllerExecutionSupport = HostControllerExecutionSupport.Factory.create(context, operation, localHostControllerInfo.getLocalHostName(), new LazyDomainModelProvider(context), ignoredDomainResourceRegistry, !localHostControllerInfo.isMasterDomainController() && localHostControllerInfo.isRemoteDomainControllerIgnoreUnaffectedConfiguration(), extensionRegistry); ModelNode domainOp = hostControllerExecutionSupport.getDomainOperation(); if (domainOp != null) { if (originalRegistration == null) { throw new OperationFailedException(ControllerLogger.ROOT_LOGGER.noSuchResourceType(originalAddress)); } addBasicStep(context, domainOp, localResponse); } ServerOperationResolver resolver = new ServerOperationResolver(localHostControllerInfo.getLocalHostName(), serverProxies); ServerOperationsResolverHandler sorh = new ServerOperationsResolverHandler( resolver, hostControllerExecutionSupport, originalAddress, originalRegistration, multiPhaseLocalContext); context.addStep(sorh, OperationContext.Stage.DOMAIN); context.addStep(new OperationStepHandler() { @Override public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { context.completeStep(new OperationContext.ResultHandler() { @Override public void handleResult(OperationContext.ResultAction resultAction, OperationContext context, ModelNode operation) { <START> hostControllerExecutionSupport.complete(context, resultAction == OperationContext.ResultAction.ROLLBACK); <END> } }); } }, OperationContext.Stage.DOMAIN); return hostControllerExecutionSupport; }</code><technical_language>I this moved existing ResultHandler passed completeStep OperationSlaveStepHandler's execute method</technical_language>

Target:
HostControllerExecutionSupport addSteps(final OperationContext context, final ModelNode operation, final MultiPhaseLocalContext multiPhaseLocalContext) throws OperationFailedException { final PathAddress originalAddress = PathAddress.pathAddress(operation.get(OP_ADDR)); final ImmutableManagementResourceRegistration originalRegistration = context.getResourceRegistration(); final ModelNode localResponse = multiPhaseLocalContext.getLocalResponse(); final HostControllerExecutionSupport hostControllerExecutionSupport = HostControllerExecutionSupport.Factory.create(context, operation, localHostControllerInfo.getLocalHostName(), new LazyDomainModelProvider(context), ignoredDomainResourceRegistry, !localHostControllerInfo.isMasterDomainController() && localHostControllerInfo.isRemoteDomainControllerIgnoreUnaffectedConfiguration(), extensionRegistry); ModelNode domainOp = hostControllerExecutionSupport.getDomainOperation(); if (domainOp != null) { if (originalRegistration == null) { throw new OperationFailedException(ControllerLogger.ROOT_LOGGER.noSuchResourceType(originalAddress)); } addBasicStep(context, domainOp, localResponse); } ServerOperationResolver resolver = new ServerOperationResolver(localHostControllerInfo.getLocalHostName(), serverProxies); ServerOperationsResolverHandler sorh = new ServerOperationsResolverHandler( resolver, hostControllerExecutionSupport, originalAddress, originalRegistration, multiPhaseLocalContext); context.addStep(sorh, OperationContext.Stage.DOMAIN); return hostControllerExecutionSupport; }