code: @Override
  	public synchronized void createReport() throws IOException {
  		if (reportLines.isEmpty()) {
  			log.debug("No data to report. Skipping report generation.");
  			return;
  		}
  
  		File reportFile = new File(archiveDir.get(), createFileName());
  
  		log.debug("Writing report to file: {}", reportFile);
  
  		String header = getHeaderLine();
  		if (header != null) {
  			reportLines.addFirst(header);
  		}
  		FileUtils.writeLines(reportFile, charset == null ? defaultCharset.name() : charset.name(), reportLines);
  
  		reportLines.clear();
  	}
docs: Writes the report to a file. The report is written to the archive direcory as specified by
  the property {@link JFunkConstants#ARCHIVE_DIR}.