dataService.saveModule(module);
return exporterError.getErrorMessage();
}
// update the export information
module.getModuleProperties().put(exporterKey + "." + DataExportService.PROPERTY_LAST_EXPORT_TIMESTAMP, String.valueOf(System.currentTimeMillis()));
ModuleSession session = dataService.getLastSession(module);
if (session != null) {
// should always be the case
module.getModuleProperties().put(exporterKey + "." + DataExportService.PROPERTY_LAST_EXPORTED_SESSION, String.valueOf(session.getIndex()));
}
dataService.saveModule(module);
} catch (RuntimeException ioe) {
logger.error(ioe.getMessage(), ioe);
}