try {
RunResult runResult = runner.runTest(test);
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
pw.write("<?xml version=\"1.0\" encoding=\"UTF-16\"?>");
new XMLReportWriter(true).write(runResult, pw);
result = sw.getBuffer().toString();
LOGGER.log(Level.FINEST, "result=" + result);
} catch (TestFailureException e) {
LOGGER.log(Level.SEVERE, "error in execute", e);
} catch (Throwable t) {