Curriculum curriculum = curricularCourse.findLatestCurriculum();
InfoCurriculum infoCurriculum = null;
if (curriculum != null) {
infoCurriculum = InfoCurriculumWithInfoCurricularCourse.newInfoFromDomain(curriculum);
} else {
infoCurriculum = new InfoCurriculumWithInfoCurricularCourse();
infoCurriculum.setExternalId(null);
infoCurriculum.setInfoCurricularCourse(InfoCurricularCourse.newInfoFromDomain(curricularCourse));
}
infoCurriculum = createInfoCurriculum(infoCurriculum, activeCurricularCourseScopes, associatedExecutionCourses);