crit.addOrder(order);
@SuppressWarnings("unchecked")
List<Prozess> pl = crit.setFirstResult(0).setMaxResults(Integer.MAX_VALUE).list();
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet("Search results");
HSSFRow title = sheet.createRow(0);
HSSFCell titleCell1 = title.createCell(0);
titleCell1.setCellValue(this.filter);
HSSFCell titleCell2 = title.createCell(1);
titleCell2.setCellValue("");
HSSFCell titleCell3 = title.createCell(2);
titleCell3.setCellValue("");
HSSFCell titleCell4 = title.createCell(3);
titleCell4.setCellValue("");
HSSFCell titleCell5 = title.createCell(4);
titleCell5.setCellValue("");
HSSFCell titleCell6 = title.createCell(5);
titleCell6.setCellValue("");
HSSFCell titleCell7 = title.createCell(6);
titleCell7.setCellValue("");
HSSFCell titleCell8 = title.createCell(7);
titleCell8.setCellValue("");
HSSFCell titleCell9 = title.createCell(8);
titleCell9.setCellValue("");
HSSFRow row0 = sheet.createRow(1);
HSSFCell headercell0 = row0.createCell(0);
headercell0.setCellValue(Helper.getTranslation("title"));
HSSFCell headercell1 = row0.createCell(1);
headercell1.setCellValue(Helper.getTranslation("ID"));
HSSFCell headercell2 = row0.createCell(2);
headercell2.setCellValue(Helper.getTranslation("Datum"));
HSSFCell headercell3 = row0.createCell(3);
headercell3.setCellValue(Helper.getTranslation("CountImages"));
HSSFCell headercell4 = row0.createCell(4);
headercell4.setCellValue(Helper.getTranslation("CountMetadata"));
HSSFCell headercell5 = row0.createCell(5);
headercell5.setCellValue(Helper.getTranslation("Project"));
HSSFCell headercell6 = row0.createCell(6);
headercell6.setCellValue(Helper.getTranslation("Status"));
HSSFCell headercell7 = row0.createCell(7);
headercell7.setCellValue(Helper.getTranslation("AltRefNo"));
HSSFCell headercell8 = row0.createCell(8);
headercell8.setCellValue(Helper.getTranslation("b-number"));
int rowcounter = 2;
for (Prozess p : pl) {
HSSFRow row = sheet.createRow(rowcounter);
HSSFCell cell0 = row.createCell(0);
cell0.setCellValue(p.getTitel());
HSSFCell cell1 = row.createCell(1);
cell1.setCellValue(p.getId());
HSSFCell cell2 = row.createCell(2);