final Student student = studentCurricularPlan.getRegistration().getStudent();
if (student.hasActiveRegistrationFor(cycleCourseGroupToEnrol.getParentDegreeCurricularPlan())) {
throw new FenixServiceException("error");
}
final MDCandidacy candidacy = createMDCandidacy(student, cycleCourseGroupToEnrol, executionSemester);
final Registration newRegistration =
new Registration(student.getPerson(), cycleCourseGroupToEnrol.getParentDegreeCurricularPlan(), candidacy,
RegistrationProtocol.getDefault(), cycleCourseGroupToEnrol.getCycleType());
newRegistration.setSourceRegistration(studentCurricularPlan.getRegistration());