@Override
public UpdateContainer doIt(Workspace workspace) throws CommandException {
UpdateContainer c = new UpdateContainer();
// Convert the Excel file to a CSV file.
ToCSV csvConverter = new ToCSV();
try {
csvConverter.convertExcelToCSV(getFile().getAbsolutePath(),
ServletContextParameterMap.getParameterValue(ContextParameter.CSV_PUBLISH_DIR));
} catch (Exception e) {
String message = "Error occured while converting the Excel file to CSV file.";
logger.error(message, e);
return new UpdateContainer(new ErrorUpdate(message));
}
List<File> csvFiles = csvConverter.getCsvFiles();
// Each sheet is written to a separate CSV file
if (!csvFiles.isEmpty()) {
for (File csvFile : csvFiles) {