if (e instanceof IllegalDataAccessException) { errorMessage = "message.error.notAuthorized.create.evaluation.during.exan.period"; }
    public String createWrittenTest() throws FenixFilterException, FenixServiceException {        List<String> executionCourseIDs = new ArrayList<String>();        executionCourseIDs.add(this.getExecutionCourseID().toString());        List<String> curricularCourseScopeIDs = new ArrayList<String>();        List<String> curricularCourseContextIDs = new ArrayList<String>();                ExecutionCourse executionCourse = rootDomainObject.readExecutionCourseByOID(getExecutionCourseID());        for (CurricularCourse curricularCourse : executionCourse.getAssociatedCurricularCourses()) {            for (CurricularCourseScope curricularCourseScope : curricularCourse.getScopes()) {                if (curricularCourseScope.getCurricularSemester().getSemester().equals(                        executionCourse.getExecutionPeriod().getSemester())) {                    curricularCourseScopeIDs.add(curricularCourseScope.getIdInternal().toString());                }            }        }        final Season season = (getSeason() != null) ? new Season(getSeason()) : null;        final Object[] args = { this.getExecutionCourseID(), this.getBegin().getTime(), this.getBegin().getTime(), this.getEnd().getTime(), executionCourseIDs,                curricularCourseScopeIDs, curricularCourseContextIDs, null, season, this.getDescription() };        try {            ServiceUtils.executeService(getUserView(), "CreateWrittenEvaluation", args);        } catch (Exception e) {            String errorMessage = e.getMessage();            if (e instanceof NotAuthorizedFilterException) {                errorMessage = "message.error.notAuthorized";            }            this.setErrorMessage(errorMessage);            return "";        }        return WrittenTest.class.getSimpleName();    }