@Override
public Object provide(Object source, Object currentValue) {
if (source instanceof ExecutionDegreeBean) {
ExecutionDegreeBean executionDegreeBean = (ExecutionDegreeBean) source;
if (executionDegreeBean.getDegree() != null) {
return executionDegreeBean.getDegree().getDegreeType().getCycleTypes();
}
} else if (source instanceof StudentCurricularPlanCreator) {
StudentCurricularPlanCreator studentCurricularPlanCreator = (StudentCurricularPlanCreator) source;
if (studentCurricularPlanCreator.getDegree() != null) {
return studentCurricularPlanCreator.getDegree().getDegreeType().getCycleTypes();