for (final EquivalencePlanEntry equivalencePlanEntry : degreeCurricularPlan.getEquivalencePlan().getEntriesSet()) {
if (hasAllEnrolmentsFor(equivalencePlanEntry, getOldStudentCurricularPlan())
&& (curriculumModule == null || matchOrigin(equivalencePlanEntry, curriculumModule.getDegreeModule()))) {
if (getEntriesToRemoveSet().contains(equivalencePlanEntry)) {
equivalencePlanEntries.add(new EquivalencyPlanEntryWrapper(equivalencePlanEntry, true));
} else {
equivalencePlanEntries.add(new EquivalencyPlanEntryWrapper(equivalencePlanEntry, false));
}
}
}
for (final EquivalencePlanEntry equivalencePlanEntry : getEntriesSet()) {
if (equivalencePlanEntry.isFor(degreeCurricularPlan)
&& (curriculumModule == null || equivalencePlanEntry.isFor(curriculumModule.getDegreeModule()))) {
equivalencePlanEntries.add(new EquivalencyPlanEntryWrapper(equivalencePlanEntry, false));
}
}
return equivalencePlanEntries;
}