writer.setTemplate(templateURL);
}
return writer;
}
} else if (format.equals(TransferFormats.CSV)) {
return new CsvItemWriter();
} else if (format.equals(TransferFormats.DBF)) {
return new DBFItemWriter();
} else {
throw new RuntimeException(format + " is not supported(choose xls,csv,dbf)");
}