if (executionDegrees.isEmpty()) {
addActionMessage(request, "errors.impossible.operation");
return mapping.getInputForward();
}
final ExecutionDegree selectedExecutionDegree =
getSelectedExecutionDegree(form, registration, executionSemester, executionDegrees);
if (selectedExecutionDegree == null) {
addActionMessage(request, "errors.impossible.operation");
return mapping.getInputForward();
}
request.setAttribute("selectedExecutionDegree", selectedExecutionDegree);
form.set("degree", selectedExecutionDegree.getExternalId());
sortExecutionDegreesByDegreeName(executionDegrees);
request.setAttribute(
"executionDegrees",
ExecutionDegreesFormat.buildLabelValueBeansForExecutionDegree(executionDegrees,
getResources(request, "ENUMERATION_RESOURCES"), request));
request.setAttribute("attendingExecutionCourses", registration.getAttendingExecutionCoursesFor(executionSemester));
request.setAttribute("executionCoursesFromExecutionDegree", selectedExecutionDegree.getDegreeCurricularPlan()
.getExecutionCoursesByExecutionPeriod(executionSemester));
return mapping.findForward("selectCourses");
}