final CycleCurriculumGroup secondCycle = studentCurricularPlan.getSecondCycle();
if (secondCycle == null) {
return prepareSelectAffinityToEnrol(mapping, request, studentCurricularPlan, executionSemester);
} else if (secondCycle.isExternal()) {
final Student student = studentCurricularPlan.getRegistration().getStudent();
final Registration newRegistration =
student.getActiveRegistrationFor(secondCycle.getDegreeCurricularPlanOfDegreeModule());
if (newRegistration != null) {
request.setAttribute("registration", newRegistration);
return mapping.findForward("proceedToEnrolment");
}