for (final Registration registration : this.getStudents()) { for (final Enrolment enrolment : registration.getCurrentEnrolments()) { for (final Attends attends : enrolment.getAttends()) { final AnnouncementBoard board = attends.getDisciplinaExecucao().getBoard(); if (board != null && (board.hasReader(this) || board.hasWriter(this))) { result.add(board); } }
for (final ExecutionCourse executionCourse : ExecutionPeriod.readActualExecutionPeriod().getAssociatedExecutionCoursesSet()) { final AnnouncementBoard board = executionCourse.getBoard(); if (board != null && (board.hasReader(this) || board.hasWriter(this)) && getStudent().attends(executionCourse)) { result.add(board);
    private Collection<AnnouncementBoard> getStudentCurrentExecutionCourseAnnouncementBoards() {	final Collection<AnnouncementBoard> result = new HashSet<AnnouncementBoard>();	for (final Registration registration : this.getStudents()) {	    for (final Enrolment enrolment : registration.getCurrentEnrolments()) {		for (final Attends attends : enrolment.getAttends()) {		    final AnnouncementBoard board = attends.getDisciplinaExecucao().getBoard();		    if (board != null && (board.hasReader(this) || board.hasWriter(this))) {			result.add(board);		    }		}	    }        }	return result;    }