}
String filePath = createFileName(outputDir, fileName, fileExtension, recordCount);
Mediator.getLogger(RecordCsvWriter.class.getName()).log(Level.FINE, "About to write {0} record(s) to {1}",
new Object[]{recordCount, filePath});
csvWriter = new CSVWriter(new FileWriter(new File(filePath)));
csvWriter.writeAll(format.format(tempLinkedRecordList));
Mediator.getLogger(RecordCsvWriter.class.getName()).log(Level.FINE, "Finished writing {0} record(s) to {1}",
new Object[]{recordCount, filePath});
tempLinkedRecordList.clear();
}
i++;