public CsvPreference getFormat(BufferedReader reader) throws IOException {
reader.mark(10 * 1024);
CsvPreference[] templates = {CsvPreference.EXCEL_PREFERENCE, CsvPreference.EXCEL_NORTH_EUROPE_PREFERENCE, CsvPreference.TAB_PREFERENCE};
for(CsvPreference template : templates){
CsvPreference format = createFormat(template);
try {
if(checkFormat(reader, format)){
return format;
}