e.printStackTrace(new PrintWriter(sw));
log = sw.toString();
logKind = LogKind.ERROR;
throw e;
} finally {
ProcessLog processLog = new ProcessLog();
processLog.setInsertDate(new Date());
processLog.setLogKind(logKind);
processLog.setProcessKind(ProcessKind.EVENT_TASK_IMPORT);
processLog.setLog(log);
logService.persistProcessLog(processLog);
}
return log;
}