public Document getDocumentFromFile() {
try {
SAXBuilder builder = new SAXBuilder();
document = builder.build(this.getClass().getResourceAsStream("/xandersone-config.xml"));
} catch (IOException e) {
throw new ConfigException("XmlConfigReader not properly initialized - ConfigurationException: " + e);
} catch (JDOMException e) {
throw new ConfigException("XmlConfigReader not properly initialized - ConfigurationException: " + e);
}
return document;
}