private String buildParametersForTeacherResults(
     TeacherShiftTypeResultsBean teacherShiftTypeResultsBean) {
   StringBuilder builder = new StringBuilder();
   builder.append("shiftType=").append(teacherShiftTypeResultsBean.getShiftType().name());
   builder
       .append("&professorshipOID=")
       .append(teacherShiftTypeResultsBean.getProfessorship().getExternalId());
   return builder.toString();
 }
  private void createResultsGroup(CurricularCourseResumeResult courseResumeResult, HtmlMenu menu) {
    HtmlMenuGroup resultsGroup =
        menu.createGroup(
            RenderUtils.getResourceString("INQUIRIES_RESOURCES", "label.inquiry.results"));
    HtmlMenuOption optionUC = resultsGroup.createOption();
    optionUC.setText(
        RenderUtils.getResourceString("INQUIRIES_RESOURCES", "label.inquiry.ucResults"));
    String resultsParameters = buildParametersForResults(courseResumeResult);
    HtmlLink link = new HtmlLink();
    link.setModule("/publico");
    link.setUrl("/viewCourseResults.do?" + resultsParameters);
    link.setEscapeAmpersand(false);
    String calculatedUrl = link.calculateUrl();
    optionUC.setValue(
        calculatedUrl
            + "&_request_checksum_="
            + GenericChecksumRewriter.calculateChecksum(calculatedUrl, getSession()));

    for (TeacherShiftTypeResultsBean teacherShiftTypeResultsBean :
        courseResumeResult.getTeachersResults()) {
      String teacherResultsParameters =
          buildParametersForTeacherResults(teacherShiftTypeResultsBean);
      HtmlLink teacherLink = new HtmlLink();
      teacherLink.setEscapeAmpersand(false);
      teacherLink.setModule("/publico");
      teacherLink.setUrl("/viewTeacherResults.do?" + teacherResultsParameters);
      calculatedUrl = teacherLink.calculateUrl();

      HtmlMenuOption optionTeacher = resultsGroup.createOption();
      optionTeacher.setText(
          teacherShiftTypeResultsBean.getShiftType().getFullNameTipoAula()
              + " - "
              + teacherShiftTypeResultsBean.getProfessorship().getPerson().getName());
      optionTeacher.setValue(
          calculatedUrl
              + "&_request_checksum_="
              + GenericChecksumRewriter.calculateChecksum(calculatedUrl, getSession()));
    }
  }