final CurricularPeriod curricularPeriod = getCurricularPeriod(degreeCurricularPlan, year, semester);
final ExecutionSemester beginExecutionPeriod = FenixFramework.getDomainObject(beginExecutionPeriodId);
final ExecutionSemester endExecutionPeriod = FenixFramework.getDomainObject(endExecutionPeriodId);
courseGroup.addContext(curricularCourse, curricularPeriod, beginExecutionPeriod, endExecutionPeriod);
}
private static CurricularPeriod getCurricularPeriod(final DegreeCurricularPlan degreeCurricularPlan, final Integer year,
final Integer semester) {
CurricularPeriod curricularPeriod = degreeCurricularPlan.getCurricularPeriodFor(year, semester);