fos.write((header_+System.getProperty("line.separator")).getBytes(StringHelper.check4xMacRoman(charSet)));
FileUtils.copy(fis, fos);
fis.close();
fos.close();
outFile.delete();
tmpOutFile.renameTo(outFile);
log_.info("exportCourseLog: resulting outfile="+outFile.getAbsolutePath());
} catch(RuntimeException e) {
String details = "outFile="+outFile.getAbsolutePath()+", resAdminAction="+resourceAdminAction+", resourceableId="+resourceableId+", anonymize="+anonymize+", begin="+(begin==null ? null : begin.getTime())+", end="+(end==null ? null : end.getTime());
log_.error("exportCourseLog: runtime exception. Details: "+details,e);