List<FenixCourseExtended.FenixCompetence> moreInfo = new ArrayList<>();
for (Map.Entry<CompetenceCourse, Set<CurricularCourse>> entry : curricularCourses.entrySet()) {
List<FenixCourseExtended.FenixCompetence.BiblioRef> biblios = new ArrayList<>();
final CompetenceCourse competenceCourse = entry.getKey();
for (BibliographicReference bibliographicReference : competenceCourse.getBibliographicReferences()
.getBibliographicReferencesSortedByOrder()) {
String author = bibliographicReference.getAuthors();
String reference = bibliographicReference.getReference();
String title = bibliographicReference.getTitle();
String bibYear = bibliographicReference.getYear();
String type = bibliographicReference.getType().getName();
String url = bibliographicReference.getUrl();
biblios.add(new BiblioRef(author, reference, title, bibYear, type, url));
}
List<FenixCourseExtended.FenixCompetence.Degree> degrees = new ArrayList<>();
for (CurricularCourse curricularCourse : entry.getValue()) {
String id = curricularCourse.getDegree().getExternalId();
String dName = curricularCourse.getDegree().getPresentationName();
String dacronym = curricularCourse.getAcronym();
degrees.add(new FenixCourseExtended.FenixCompetence.Degree(id, dName, dacronym));
}
String program = competenceCourse.getProgram();
moreInfo.add(new FenixCompetence(competenceCourse.getExternalId(), program, biblios, degrees));
}
int numberOfStudents = executionCourse.getAttendsSet().size();