DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.parse(src);
TestResultWriter writer = new TestResultWriter(outFile.getAbsolutePath());
runner = new Runner(doc.getDocumentElement(), writer);
runner.run(group);
} catch (Exception e) {
throw new BuildException("ERROR: " + e.getMessage(), e);
} finally {
if (runner != null)
runner.shutdown();