public class CurriculumGroupsProviderForEnrolmentsLocationManagement implements DataProvider {
@Override
public Object provide(Object source, Object currentValue) {
final EnrolmentLocationBean bean = (EnrolmentLocationBean) source;
final Set<DegreeModule> result = new TreeSet<DegreeModule>(DegreeModule.COMPARATOR_BY_NAME);
final Set<AcademicProgram> programs =
AcademicAccessRule.getProgramsAccessibleToFunction(AcademicOperationType.STUDENT_ENROLMENTS,
Authenticate.getUser()).collect(Collectors.toSet());
for (final Registration registration : bean.getStudent().getRegistrationsSet()) {
if (!registration.isBolonha()) {
continue;
}