});
}
private Collection<Degree> getDegrees(Object source) {
if (source instanceof SecondCycleIndividualCandidacyProcessBean) {
final SecondCycleIndividualCandidacyProcessBean bean = (SecondCycleIndividualCandidacyProcessBean) source;
return bean.getAvailableDegrees();
}
if (source instanceof ChooseDegreeBean) {
final ChooseDegreeBean bean = (ChooseDegreeBean) source;
final CandidacyProcess candidacyProcess = bean.getCandidacyProcess();
if (candidacyProcess instanceof SecondCycleCandidacyProcess) {
final SecondCycleCandidacyProcess secondCycleCandidacyProcess = (SecondCycleCandidacyProcess) candidacyProcess;
return secondCycleCandidacyProcess.getAvailableDegrees();
}
}