}
private Map<Branch, SortedSet<DegreeModuleScope>> getBranchMap(final DegreeCurricularPlan degreeCurricularPlan,
final ExecutionSemester executionSemester) {
final Map<Branch, SortedSet<DegreeModuleScope>> branchMap =
new TreeMap<Branch, SortedSet<DegreeModuleScope>>(new BeanComparator("name"));
for (final CurricularCourse curricularCourse : degreeCurricularPlan.getCurricularCoursesSet()) {
for (final CurricularCourseScope scope : curricularCourse.getScopesSet()) {
if (scope.isActiveForExecutionPeriod(executionSemester)) {
addToMap(branchMap, scope);
}