List infoCurricularCourses =
(List) CollectionUtils.collect(executionCourse.getAssociatedCurricularCoursesSet(), new Transformer() {
@Override
public Object transform(Object input) {
CurricularCourse curricularCourse = (CurricularCourse) input;
InfoCurricularCourse infoCurricularCourse = InfoCurricularCourse.newInfoFromDomain(curricularCourse);
DegreeType degreeType = curricularCourse.getDegreeCurricularPlan().getDegree().getDegreeType();
if (degreeType.equals(DegreeType.DEGREE)) {
detailedProfessorship.setMasterDegreeOnly(Boolean.FALSE);
}
return infoCurricularCourse;
}