private static void addQuittingTimes(
      PdfPTable table, String employmentTime, String employerWarning, String employeeWarning) {
    PdfPCell timeCell = new PdfPCell();
    timeCell.addElement(PdfHelper.lastLineParagraph(employmentTime));
    table.addCell(timeCell);

    PdfPCell employerCell = new PdfPCell();
    employerCell.addElement(PdfHelper.lastLineParagraph(employerWarning));
    table.addCell(employerCell);

    PdfPCell employeeCell = new PdfPCell();
    employeeCell.addElement(PdfHelper.lastLineParagraph(employeeWarning));
    table.addCell(employeeCell);
  }
  private static PdfPTable createEmploymentDetails(Employment employment) {
    PdfPTable employeeTable = new PdfPTable(4);
    employeeTable.setWidthPercentage(100.0f);

    PdfPCell startDateHeadingCell = new PdfPCell();
    startDateHeadingCell.addElement(PdfHelper.lastLineParagraphBold("Startdato"));
    employeeTable.addCell(startDateHeadingCell);

    PdfPCell startDateCell = new PdfPCell();
    startDateCell.addElement(PdfHelper.lastLineParagraph(employment.getStartDate().toString()));
    employeeTable.addCell(startDateCell);

    PdfPCell positionHeadingCell = new PdfPCell();
    positionHeadingCell.addElement(PdfHelper.lastLineParagraphBold("Stilling"));
    employeeTable.addCell(positionHeadingCell);

    PdfPCell positionCell = new PdfPCell();
    positionCell.addElement(PdfHelper.lastLineParagraph(employment.getEmploymentType().name()));
    employeeTable.addCell(positionCell);

    PdfPCell endDateHeadingCell = new PdfPCell();
    endDateHeadingCell.addElement(PdfHelper.lastLineParagraphBold("Slutdato"));
    employeeTable.addCell(endDateHeadingCell);

    PdfPCell endDateCell = new PdfPCell();
    if (employment.getStopDate() == null) endDateCell.addElement(PdfHelper.paragraph(""));
    else {
      endDateCell.addElement(PdfHelper.paragraph(employment.getStopDate().toString()));
    }
    employeeTable.addCell(endDateCell);

    PdfPCell workTimeHeadingCell = new PdfPCell();
    workTimeHeadingCell.addElement(PdfHelper.paragraphBold("Ca. arbejdstid per uge"));
    employeeTable.addCell(workTimeHeadingCell);

    PdfPCell workTimeCell = new PdfPCell();
    Element workTime = null;

    if (employment.getHours() == 0) workTime = PdfHelper.lastLineParagraph("");
    else workTime = PdfHelper.lastLineParagraph(employment.getHours() + "");

    workTimeCell.addElement(workTime);
    employeeTable.addCell(workTimeCell);

    PdfPCell trialHeadingCell = new PdfPCell();
    trialHeadingCell.addElement(PdfHelper.lastLineParagraphBold("3 mdrs. prøvetid"));
    employeeTable.addCell(trialHeadingCell);

    PdfPCell trialCell = new PdfPCell();
    if (employment.getTrial()) trialCell.addElement(PdfHelper.lastLineParagraph("Ja"));
    else trialCell.addElement(PdfHelper.lastLineParagraph("Nej"));
    employeeTable.addCell(trialCell);

    PdfPCell taxInformationHeadingCell = new PdfPCell();
    taxInformationHeadingCell.addElement(PdfHelper.paragraphBold("Rekvirer skattekort"));
    employeeTable.addCell(taxInformationHeadingCell);

    PdfPCell taxInformationCell = new PdfPCell();
    taxInformationCell.addElement(PdfHelper.lastLineParagraph(employment.getTaxationForm().name()));
    employeeTable.addCell(taxInformationCell);

    return employeeTable;
  }