public class OriginDegreeModuleForStudentEquivalencyPlanEntryCreatorProvider implements DataProvider {
@Override
public Object provide(Object source, Object currentValue) {
final StudentEquivalencyPlanEntryCreator studentEquivalencyPlanEntryCreator = (StudentEquivalencyPlanEntryCreator) source;
final StudentCurricularPlanEquivalencePlan studentCurricularPlanEquivalencePlan =
studentEquivalencyPlanEntryCreator.getStudentCurricularPlanEquivalencePlan();
final StudentCurricularPlan studentCurricularPlan = studentCurricularPlanEquivalencePlan.getOldStudentCurricularPlan();
final Set<DegreeModule> degreeModules = studentCurricularPlan.getAllDegreeModules();
return degreeModules;
}