throw new ParseException(parser.getParserErrors());
}
StringBuilder output = new StringBuilder();
for (Statement stmt : parser.statements) {
Result result = stmt.execute(session);
if (result != EmptyResult.RESULT) {
output.append(result.getResult());
}
}
if (output.length() > 0) {
response.put(ResultKeys.OUTPUT.toString(), output.toString());
}