LineListener ll = new LineListener() {
public void lineRead(String line) {
sb.append(line).append("\n");
}
};
PrintStream po = new PrintStream(new LineOutputStream(ll));
CommandContext c = new CommandContext(commandHandler, null, "", new String[0], 1, null);
c.out = po;
c.err = po;
if (0 != executeCLICommand(cmd, c)) {