SAXParser sp = spf.newSAXParser();
// parse the file and also register this class for call backs
logger.info("Opening configuration file: " + filename);
sp.parse(filename, this);
} catch (SAXException se) {
throw new ConfigurationException("Error loading configuration", se);
} catch (ParserConfigurationException pce) {
throw new ConfigurationException("Error configuring SAX-Parser",
pce);
} catch (IOException ie) {
throw new ConfigurationException(
"Error opening configuration file", ie);
}
}