public OperationResult execute(final OperationContext context, final ModelNode operation, final ResultHandler resultHandler) throws OperationFailedException {
try {
final ModelNode compensating = LocalDomainControllerAddHandler.getAddDomainControllerOperation(operation.get(OP_ADDR));
context.getSubModel().get(DOMAIN_CONTROLLER).setEmptyObject();
resultHandler.handleResultComplete();
return new BasicOperationResult(compensating);
}
catch (Exception e) {
throw new OperationFailedException(new ModelNode().set(e.getLocalizedMessage()));
}
}