CommandLine command = CommandLine.parse(execCommand);
out.println("========================");
info(out, String.format("Execute command: %s", command.toString()));
out.println("========================");
LogOutputStream outputStream = new LogOutputStream() {
protected void processLine(String line, int level){
log.info(String.format("Command logged an out: %s", line));
out.println(line);
}
};
LogOutputStream errorStream = new LogOutputStream() {
protected void processLine(String line, int level){
log.error(String.format("Command logged an error: %s", line));
out.println(line);
}
};