URLFactorySourceResolver urlResolver = new URLFactorySourceResolver(urlFactory, manager);
configSource = urlResolver.resolve(configUrl);
if (getLogger().isDebugEnabled()) {
getLogger().debug("Loading configuration from " + configSource.getSystemId());
}
configSource.toSAX(new ConfigurationParser());
} catch (Exception e) {
getLogger().warn("Cannot load configuration from " + configUrl);
throw new ConfigurationException("Cannot load configuration from " + configUrl, e);
} finally {
manager.release(urlFactory);