}
private void zipExport()
{
try {
final ExportZipArchive exportZipArchive = (ExportZipArchive) groovyResult.getResult();
final StringBuilder sb = new StringBuilder();
sb.append(exportZipArchive.getFilename()).append("_");
sb.append(DateHelper.getTimestampAsFilenameSuffix(new Date())).append(".zip");
final String filename = sb.toString();
DownloadUtils.setDownloadTarget(filename, exportZipArchive.createResourceStreamWriter());
} catch (final Exception ex) {
error(getLocalizedMessage("error", ex.getMessage()));
log.error(ex.getMessage(), ex);
}
}