return (curricularCourse.getCurricularYearByBranchAndSemester(this.studentBranch, this.executionPeriod.getSemester()).getYear().intValue() == i);
CurricularYear curricularYear = curricularCourse.getCurricularYearByBranchAndSemester(this.studentBranch, this.executionPeriod.getSemester()); return (curricularYear != null && curricularYear.getYear().intValue() == i);
    private boolean isCurricularCourseFromYear(int i, CurricularCourse curricularCourse) {        return (curricularCourse.getCurricularYearByBranchAndSemester(this.studentBranch,                this.executionPeriod.getSemester()).getYear().intValue() == i);    }