config = new ClickstreamConfig();
try {
Logger.debug(ConfigLoader.class, "Loading config");
SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
parser.parse(is, new ConfigHandler());
return config;
}
catch (SAXException e) {
Logger.fatal(ConfigLoader.class, "Could not parse config XML", e);
throw new RuntimeException(e.getMessage());