}
}
}
final private SortedSet<ICurriculumEntry> mapEntries() {
final ApprovementMobilityCertificateRequest request = getDocumentRequest();
final SortedSet<ICurriculumEntry> entries =
new TreeSet<ICurriculumEntry>(ICurriculumEntry.COMPARATOR_BY_EXECUTION_PERIOD_AND_NAME_AND_ID);
final Registration registration = getDocumentRequest().getRegistration();
if (registration.isBolonha()) {
mapCycles(entries);
} else {
final ICurriculum curriculum = registration.getCurriculum(request.getFilteringDate());
ApprovementMobilityCertificateRequest.filterEntries(entries, request, curriculum);
}
if (registration.getRegistrationProtocol().isMobilityAgreement()) {
entries.addAll(request.getStandaloneEntriesToReport());
}
entries.addAll(request.getExtraCurricularEntriesToReport());
entries.addAll(request.getPropaedeuticEntriesToReport());
return entries;
}