} catch (IOException ioe) {
ErrorReporter.getErrorHandler().reportError("The parser cannot open the file",ioe);
throw new ConfigurationManagerException("The parser cannot open the file: " + ioe.getMessage());
}
Configuration config = parser.parse(doc, configurationName);
config.resetCreated();
return config;
}
else {
ErrorReporter.getErrorHandler().reportError("The file:"+filename+" not found in classpath");
throw new ConfigurationManagerException("The file could not be found in the classpath");