final ExecutionCourse selectedExecutionCourse =
setDomainObjectInRequest(dynaActionForm, request, "executionCourseID", "executionCourse");
request.setAttribute("selectedExecutionCourse", selectedExecutionCourse);
final String curricularYearID = getCurricularYearID(dynaActionForm);
final CurricularYear selecctedCurricularYear =
setDomainObjectInRequest(dynaActionForm, request, "curricularYearID", "selecctedCurricularYear");
final DegreeCurricularPlan degreeCurricularPlan =
setDomainObjectInRequest(dynaActionForm, request, "degreeCurricularPlanID", "executionCourse");
if (degreeCurricularPlan != null) {
request.setAttribute("degreeCurricularPlanID", degreeCurricularPlan.getExternalId());
for (final CurricularCourse curricularCourse : degreeCurricularPlan.getCurricularCoursesSet()) {
for (final DegreeModuleScope degreeCourseScope : curricularCourse.getDegreeModuleScopes()) {
final CurricularYear curricularYear = CurricularYear.readByYear(degreeCourseScope.getCurricularYear());
curricularYears.add(curricularYear);
if (curricularYearID == null || curricularYear.getExternalId().equals(curricularYearID)) {
for (final ExecutionCourse executionCourse : curricularCourse
.getExecutionCoursesByExecutionPeriod(selectedExecutionPeriod)) {
executionCourses.add(executionCourse);
}
}