for (StudentCurricularPlan studentCurricularPlan : getSortedStudentCurricularPlans(registration)) {
for (ExecutionSemester executionSemester : studentCurricularPlan.getEnrolmentsExecutionPeriods()) {
if (enrolmentsByExecutionPeriod.containsKey(executionSemester)) {
ExecutionPeriodStatisticsBean executionPeriodStatisticsBean =
enrolmentsByExecutionPeriod.get(executionSemester);
executionPeriodStatisticsBean.addEnrolmentsWithinExecutionPeriod(studentCurricularPlan
.getEnrolmentsByExecutionPeriod(executionSemester));
enrolmentsByExecutionPeriod.put(executionSemester, executionPeriodStatisticsBean);
} else {
ExecutionPeriodStatisticsBean executionPeriodStatisticsBean =
new ExecutionPeriodStatisticsBean(executionSemester);