Element getElement(File xmlFile) {
try {
SAXBuilder builder =
new SAXBuilder("org.apache.xerces.parsers.SAXParser");
if (removeProperties) {
builder.setXMLFilter(new PruneElementFilter("properties"));
}
return builder.build(xmlFile).getRootElement();
} catch (JDOMException e) {
LOG.warn("Could not read log: " + xmlFile + ". Skipping...", e);
} catch (IOException e) {