public ModelNode buildRequest(CommandContext ctx) throws CommandFormatException {
final ParsedCommandLine parsedCmd = ctx.getParsedCommandLine();
final String name = this.name.getValue(parsedCmd);
if(name == null || name.isEmpty()) {
final OperationRequestAddress address = getAddress(ctx);
return Util.buildRequest(ctx, address, Util.READ_OPERATION_NAMES);
}
final OperationRequestAddress address = getAddress(ctx);
ModelNode req = Util.buildRequest(ctx, address, Util.READ_OPERATION_DESCRIPTION);
req.get(Util.NAME).set(name);
return req;
}