SOSFile.copyFile(resultFile, resultLogFile);
File eventFile = new File(stylesheetLogDir, "events_" + timeStamp + ".xml");
// write current events to eventFile
OutputStream fout = new FileOutputStream(eventFile, false);
OutputStreamWriter out = new OutputStreamWriter(fout, "UTF-8");
OutputFormat format = new OutputFormat(getEvents());
format.setEncoding("UTF-8");
format.setIndenting(true);
format.setIndent(2);
XMLSerializer serializer = new XMLSerializer(out, format);
serializer.serialize(getEvents());
out.close();
getLogger().debug("current events logged to: " + eventFile.getAbsolutePath());
getLogger().debug("transformation result logged to: " + resultLogFile.getAbsolutePath());