*@throws ConfigurationManagerException if the file cannot be processed
*/
public Configuration load(String configurationName,ConfigurationParser parser) throws ConfigurationManagerException {
InputStream is = null;
try {
is = new ResourceLocator(filename).getInputStream();
if ( is == null ) {
ErrorReporter.getErrorHandler().reportError("File not found:"+filename);
is = new ResourceLocator("config.xml").getInputStream();
}
} catch (IOException e) {
ErrorReporter.getErrorHandler().reportError("Cannot load file:"+filename,e);
throw new ConfigurationManagerException(e.getLocalizedMessage());
}