} else if (regime.equals("SEMESTER")) {
} else if (regime.equals("SEMESTRIAL")) {
    private void calculateCourseLoad(String regime, int newNumberOfPeriods) throws FenixFilterException, FenixServiceException {        final List<CourseLoad> courseLoads = getCourseLoads();        if (regime.equals("ANUAL")) {            if (newNumberOfPeriods > getNumberOfPeriods().intValue()) {                addCourseLoad(courseLoads);                                            } else {                removeCourseLoad(courseLoads);            }                    } else if (regime.equals("SEMESTER")) {            removeCourseLoad(courseLoads);            setNumberOfPeriods(Integer.valueOf(1));            // prevent application to reset the value            setNumberOfPeriods = false;         }        setCourseLoads(courseLoads);    }