response.setHeader("Content-Disposition", "attachment;filename=\"" + fileName + "\"");
// write run note to servlet output stream
try {
ServletOutputStream out = response.getOutputStream();
ExportDocket ern = new ExportDocket();
ern.startExport(this, out, xsltfile.getAbsolutePath());
out.flush();
facesContext.responseComplete();
} catch (Exception e) {
Helper.setFehlerMeldung("Exception while exporting run note.", e.getMessage());
response.reset();