String fileName = "csv_file" + DateUtils.now().getTime();
File file = File.createTempFile(fileName, ".csv");
CSVUtils.writeMultipleColumnCSV(new FileOutputStream(file), values);
return file;
} catch (IOException exception) {
throw new UnexpectedException("Error creating a temporal file to write the csv values", exception);
}
}