public Configuration getConfiguration() throws SAXException, ConfigurationException {
if (this.conf == null) return null;
InterpolatingConfigurationHandler handler = new InterpolatingConfigurationHandler(this.vars, this.conf.getLocation());
DefaultConfigurationSerializer ser = new DefaultConfigurationSerializer();
ser.serialize(handler, this.conf);
return handler.getConfiguration();
}
}