public static DocumentBuilder getDocumentBuilder() {
try {
DocumentBuilder builder = factory.newDocumentBuilder();
builder.setEntityResolver(new JSFUnitEntityResolver());
return builder;
} catch (ParserConfigurationException e) {
throw new RuntimeException("Could not create a " + DocumentBuilder.class.getName());
}
}