if(! newValue.equals(currentValue)) {
context.addStep(new OperationStepHandler(){
@Override
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException {
context.removeService(HttpManagementService.SERVICE_NAME);
final ServiceVerificationHandler handler = new ServiceVerificationHandler();
addService(context.getServiceTarget(), subModel, handler);
context.addStep(handler, OperationContext.Stage.VERIFY);
context.completeStep();
}
}, OperationContext.Stage.RUNTIME);