protected void createCandidacyPrecedentDegreeInformation( final IndividualCandidacyProcessWithPrecedentDegreeInformationBean bean, final StudentCurricularPlan studentCurricularPlan) { if (studentCurricularPlan.isBolonhaDegree()) { final CycleType cycleType; if (studentCurricularPlan.hasConcludedAnyInternalCycle()) { cycleType = studentCurricularPlan.getLastConcludedCycleCurriculumGroup().getCycleType(); } else { cycleType = studentCurricularPlan.getLastOrderedCycleCurriculumGroup().getCycleType(); } bean.setPrecedentDegreeInformation( PrecedentDegreeInformationBeanFactory.createBean(studentCurricularPlan, cycleType)); } else { bean.setPrecedentDegreeInformation( PrecedentDegreeInformationBeanFactory.createBean(studentCurricularPlan)); } }