reader = new FileReader(schemaFile);
elem = ReaderUtils.loadConfig(reader);
reader.close();
} catch (FileNotFoundException e) {
LOGGER.log(Level.FINEST, e.getMessage(), e);
throw new ConfigurationException("Could not open schema file:"
+ schemaFile, e);
} catch (Exception erk) {
throw new ConfigurationException("Could not parse schema file:"
+ schemaFile, erk);
}
try {
processSchema(elem, dto);
} catch (ConfigurationException e) {
throw new ConfigurationException("Error occured in " + schemaFile
+ "\n" + e.getMessage(), e);
}
}