private ModelNode executeOperation(final ModelNode op, boolean unwrapResult) throws IOException, MgmtOperationException {
ModelNode ret = managementClient.getControllerClient().execute(op);
if (!unwrapResult) return ret;
if (!SUCCESS.equals(ret.get(OUTCOME).asString())) {
throw new MgmtOperationException("Management operation failed: " + ret.get(FAILURE_DESCRIPTION), op, ret);
}
return ret.get(RESULT);
}