Professorship professorshipLogged = (Professorship) request.getAttribute("loggedTeacherProfessorship");
Set<Summary> teacherSummaries = new TreeSet<Summary>(Summary.COMPARATOR_BY_DATE_AND_HOUR);
teacherSummaries.addAll(professorshipLogged.getAssociatedSummariesSet());
readAndSaveNextPossibleSummaryLessonsAndDates(request, executionCourse);
request.setAttribute("showSummariesBean", new ShowSummariesBean(new SummaryTeacherBean(professorshipLogged),
executionCourse, ListSummaryType.ALL_CONTENT, professorshipLogged));
if (professorshipLogged.getTeacher() != null) {
request.setAttribute("teacherId", professorshipLogged.getTeacher().getPerson().getUsername());
}
request.setAttribute("summaries", teacherSummaries);