private Document document;
public Result getResult() {
try {
document = new DOOMDocumentBuilderFactory().newDocumentBuilder().newDocument();
} catch (ParserConfigurationException e) {
handleException("Unable to create empty DOOM document", e);
}
return new DOMResult(document);
}