}
}
public static void loadFromCsv(ServletContext context) throws HttpException {
try {
GeneralImport process = new GeneralImport(null, context
.getResource("/WEB-INF/dno-contracts.xml").openStream(),
"xml");
process.run();
List<MonadMessage> errors = process.getErrors();
if (!errors.isEmpty()) {
throw new InternalException(errors.get(0).getDescription());
}
} catch (UnsupportedEncodingException e) {
throw new InternalException(e);