if (getViewState().getAttribute("competenceCourseID") == null && getCurricularCourse() != null) { getViewState().setAttribute("competenceCourseID", getCurricularCourse().getCompetenceCourse().getIdInternal());
if (competenceCourseID == null && getCurricularCourse() != null) { competenceCourseID = getCurricularCourse().getCompetenceCourse().getIdInternal();
    public Integer getCompetenceCourseID() throws FenixFilterException, FenixServiceException {        if (getViewState().getAttribute("competenceCourseID") == null && getCurricularCourse() != null) {            getViewState().setAttribute("competenceCourseID",                    getCurricularCourse().getCompetenceCourse().getIdInternal());        }        return (Integer) getViewState().getAttribute("competenceCourseID");    }