String contentType = servletContext.getMimeType("search.pdf");
response.setContentType(contentType);
response.setHeader("Content-Disposition", "attachment;filename=\"search.pdf\"");
ServletOutputStream out = response.getOutputStream();
SearchResultGeneration sr = new SearchResultGeneration(this.filter, this.showClosedProcesses, this.showArchivedProjects);
HSSFWorkbook wb = sr.getResult();
List<List<HSSFCell>> rowList = new ArrayList<List<HSSFCell>>();
HSSFSheet mySheet = wb.getSheetAt(0);
Iterator<Row> rowIter = mySheet.rowIterator();
while (rowIter.hasNext()) {
HSSFRow myRow = (HSSFRow) rowIter.next();