exporter.addList(sheet, list);
if (exporter.isExcelAutoFilter() == true) {
sheet.setAutoFilter();
}
}
exporter.onBeforeDownload();
if (exporter.getWorkbook().getNumberOfSheets() == 0) {
// Nothing to export.
form.addError("validation.error.nothingToExport");
return;
}