}
return buf;
}
protected OperationRequestAddress getAddress(CommandContext ctx) throws CommandFormatException {
final ParsedCommandLine args = ctx.getParsedCommandLine();
final OperationRequestAddress address;
if (node.isPresent(args)) {
address = new DefaultOperationRequestAddress(ctx.getPrefix());
CommandLineParser.CallbackHandler handler = new DefaultCallbackHandler(address);
// this is for correct parsing of escaped characters
String nodePath = args.getOriginalLine();
int nodeArgInd = nodePath.indexOf(" --node=");
if(nodeArgInd < 0) {
throw new CommandFormatException("Couldn't locate ' --node=' in the line: '" + nodePath + "'");
}