for (String param : cmdArgs) {
cmdLine.append(param).append(' ');
}
builder.startElement(COMMAND_LINE_QNAME, null);
builder.characters(cmdLine.toString());
builder.endElement();
// print received output to <stdout>
builder.startElement(STDOUT_QNAME, null);
for (String line : output) {
builder.startElement(LINE_QNAME, null);