if(operation.hasDefined(SOCKET_BINDING_PORT_OFFSET)) {
model.get(SOCKET_BINDING_PORT_OFFSET).set(operation.get(SOCKET_BINDING_PORT_OFFSET));
}
final ModelNode compensating = Util.getResourceRemoveOperation(operation.get(OP_ADDR));
resultHandler.handleResultComplete();
return new BasicOperationResult(compensating);
}
catch (Exception e) {
throw new OperationFailedException(new ModelNode().set(e.getLocalizedMessage()));
}
}