public Integer getSelectedDepartmentUnitID() throws FenixFilterException, FenixServiceException {
public Integer getSelectedDepartmentUnitID() {
    public Integer getSelectedDepartmentUnitID() throws FenixFilterException, FenixServiceException {        if (getViewState().getAttribute("selectedDepartmentUnitID") == null) {            if (getCurricularRule() != null && getCurricularRule() instanceof AnyCurricularCourse) {                AnyCurricularCourse anyCurricularCourse = (AnyCurricularCourse) getCurricularRule();                setSelectedDepartmentUnitID(anyCurricularCourse.getDepartmentUnit() != null ? anyCurricularCourse                        .getDepartmentUnit().getIdInternal()                        : Integer.valueOf(0));            } else {                setSelectedDepartmentUnitID(Integer.valueOf(0));            }        }        return (Integer) getViewState().getAttribute("selectedDepartmentUnitID");    }