public static Document getDocumentFromString(String input) throws DocumentBuilderException {
try {
return createDocumentBuilder().parse(getInputSourceFromString(input));
} catch (SAXException e) {
throw new DocumentBuilderException(e);
} catch (IOException e) {
throw new DocumentBuilderException(e);
} catch (DocumentBuilderException e) {
throw new DocumentBuilderException(e);
}
}