public String addContext() throws FenixFilterException { try { checkCourseGroup(); checkCurricularCourse(); checkCurricularSemesterAndYear(); Object args[] = { getCurricularCourse(), getCourseGroup(), getCurricularYearID(), getCurricularSemesterID() }; ServiceUtils.executeService(getUserView(), "AddContextToCurricularCourse", args); } catch (FenixActionException e) { this.addErrorMessage(bolonhaBundle.getString(e.getMessage())); return ""; } catch (FenixFilterException e) { this.addErrorMessage(bolonhaBundle.getString("error.notAuthorized")); return "buildCurricularPlan"; } catch (FenixServiceException e) { this.addErrorMessage(bolonhaBundle.getString(e.getMessage())); return ""; } catch (DomainException e) { this.addErrorMessage(domainExceptionBundle.getString(e.getMessage())); return ""; } catch (Exception e) { this.addErrorMessage(bolonhaBundle.getString("general.error")); return "buildCurricularPlan"; }  addInfoMessage(bolonhaBundle.getString("addedNewContextToCurricularCourse")); setContextID(0); return "buildCurricularPlan";
public void addContext(ActionEvent event) { addContext();
    public String addContext() throws FenixFilterException {        try {            checkCourseGroup();            checkCurricularCourse();            checkCurricularSemesterAndYear();            Object args[] = { getCurricularCourse(), getCourseGroup(), getCurricularYearID(),                    getCurricularSemesterID() };            ServiceUtils.executeService(getUserView(), "AddContextToCurricularCourse", args);        } catch (FenixActionException e) {            this.addErrorMessage(bolonhaBundle.getString(e.getMessage()));            return "";        } catch (FenixFilterException e) {            this.addErrorMessage(bolonhaBundle.getString("error.notAuthorized"));            return "buildCurricularPlan";        } catch (FenixServiceException e) {            this.addErrorMessage(bolonhaBundle.getString(e.getMessage()));            return "";        } catch (DomainException e) {            this.addErrorMessage(domainExceptionBundle.getString(e.getMessage()));            return "";        } catch (Exception e) {            this.addErrorMessage(bolonhaBundle.getString("general.error"));            return "buildCurricularPlan";        }                 addInfoMessage(bolonhaBundle.getString("addedNewContextToCurricularCourse"));        setContextID(0); // resetContextID        return "buildCurricularPlan";    }