}
protected void jsonExport()
{
try {
final ExportJson exportJson = (ExportJson) groovyResult.getResult();
final StringBuilder sb = new StringBuilder();
sb.append(exportJson.getJsonName()).append("_");
sb.append(DateHelper.getTimestampAsFilenameSuffix(new Date())).append(".json");
final String filename = sb.toString();
DownloadUtils.setDownloadTarget(filename, exportJson.createResourceStreamWriter());
} catch (final Exception ex) {
error(getLocalizedMessage("error", ex.getMessage()));
log.error(ex.getMessage(), ex);
}
}