for (Lesson lesson : getShift().getAssociatedLessonsSet()) { if (lesson.getBeginHourMinuteSecond().isEqual(getSummaryHourHourMinuteSecond())) { return lesson;
if (!getIsExtraLesson()) { for (Lesson lesson : getShift().getAssociatedLessonsSet()) { if (lesson.getBeginHourMinuteSecond().isEqual(getSummaryHourHourMinuteSecond()) && lesson.getDiaSemana().getDiaSemana().intValue() == getWeekDayInDiaSemanaFormat() && ((lesson.getSala() == null && getRoom() == null) || (lesson.getSala() != null && getRoom() != null && lesson.getSala().equals(getRoom())))) { return lesson; }
    public Lesson getLesson() {	for (Lesson lesson : getShift().getAssociatedLessonsSet()) {	    if (lesson.getBeginHourMinuteSecond().isEqual(getSummaryHourHourMinuteSecond())) {		return lesson;	    }	}	return null;    }