Shift shift = bean.getShift();
SummaryTeacherBean summaryTeacher = bean.getSummaryTeacher();
Professorship teacher = (summaryTeacher != null) ? summaryTeacher.getProfessorship() : null;
Boolean otherTeachers = (summaryTeacher != null) ? summaryTeacher.getOthers() : null;
SummariesOrder summariesOrder = bean.getSummariesOrder();
Set<Summary> summariesToShow =
summariesOrder == null || summariesOrder.equals(SummariesOrder.DECREASING) ? new TreeSet<Summary>(
Summary.COMPARATOR_BY_DATE_AND_HOUR) : new TreeSet<Summary>(new ReverseComparator(
Summary.COMPARATOR_BY_DATE_AND_HOUR));
for (Summary summary : executionCourse.getAssociatedSummariesSet()) {
boolean insert = true;