public Integer getSelectedDegreeID() throws FenixFilterException, FenixServiceException {
public Integer getSelectedDegreeID() {
    public Integer getSelectedDegreeID() throws FenixFilterException, FenixServiceException {        if (getViewState().getAttribute("selectedDegreeID") == null) {            if (getCurricularRule() != null && getCurricularRule() instanceof AnyCurricularCourse) {                AnyCurricularCourse anyCurricularCourse = (AnyCurricularCourse) getCurricularRule();                setSelectedDegreeID(anyCurricularCourse.getDegree() != null ? anyCurricularCourse                        .getDegree().getIdInternal() : Integer.valueOf(0));            } else {                setSelectedDegreeID(Integer.valueOf(0));            }        }        return (Integer) getViewState().getAttribute("selectedDegreeID");    }