final Student student = AccessControl.getPerson().getStudent();
if (student != null) {
for (Registration registration : student.getActiveRegistrationsIn(ExecutionSemester.readActualExecutionSemester())) {
DegreeCurricularPlan degreeCurricularPlan = registration.getActiveDegreeCurricularPlan();
if (registration.getAttendingExecutionCoursesForCurrentExecutionPeriod().isEmpty() == false) {
studentPortalBeans.add(new StudentPortalBean(registration.getDegree(), student, registration
.getAttendingExecutionCoursesForCurrentExecutionPeriod(), degreeCurricularPlan));
}
if (hasSpecialSeasonEnrolments(student)) {
genericDegreeWarnings.addAll(getEnrolmentPeriodCoursesAfterSpecialSeason(degreeCurricularPlan));
} else {