IEnrolment enrolment,
IEnrollment enrolment,
    private IEnrolmentEvaluation getEnrolmentEvaluationByEnrolment(        UserView userView,        IExecutionCourse executionCourse,        IEnrolment enrolment,        Date evaluationDate,        String publishedMark,        IEmployee employee,        ITeacher teacher)        throws FenixServiceException    {        ISuportePersistente sp;        IEnrolmentEvaluation enrolmentEvaluation = null;        try        {            sp = SuportePersistenteOJB.getInstance();            IPersistentEnrolmentEvaluation persistentEnrolmentEvaluation =                sp.getIPersistentEnrolmentEvaluation();            //Verify if this mark has been already submited            //verifyYetSubmitMarks(enrolment);            List enrolmentEvaluationListTemporary =                persistentEnrolmentEvaluation.readEnrolmentEvaluationByEnrolmentEvaluationState(                    enrolment,                    EnrolmentEvaluationState.TEMPORARY_OBJ);            //There can exist only one enrolmentEvaluation with Temporary State            if (enrolmentEvaluationListTemporary != null && enrolmentEvaluationListTemporary.size() > 0)            {                enrolmentEvaluation = (IEnrolmentEvaluation)enrolmentEvaluationListTemporary.get(0);            }            else            {                enrolmentEvaluation = new EnrolmentEvaluation();            }            //teacher responsible for execution course            enrolmentEvaluation.setEnrolment(enrolment);            persistentEnrolmentEvaluation.simpleLockWrite(enrolmentEvaluation);            enrolmentEvaluation.setGrade(publishedMark);            enrolmentEvaluation.setEnrolmentEvaluationType(enrolment.getEnrolmentEvaluationType());            enrolmentEvaluation.setEnrolmentEvaluationState(EnrolmentEvaluationState.TEMPORARY_OBJ);            enrolmentEvaluation.setObservation(new String("Submisso da Pauta"));            enrolmentEvaluation.setPersonResponsibleForGrade(teacher.getPerson());            enrolmentEvaluation.setEmployee(employee);            Calendar calendar = Calendar.getInstance();            enrolmentEvaluation.setWhen(new Timestamp(calendar.getTimeInMillis()));            enrolmentEvaluation.setGradeAvailableDate(calendar.getTime());            if (evaluationDate != null)            {                enrolmentEvaluation.setExamDate(evaluationDate);            }            else            {                enrolmentEvaluation.setExamDate(calendar.getTime());            }            enrolmentEvaluation.setCheckSum("");            return enrolmentEvaluation;        }        catch (ExcepcaoPersistencia e)        {            e.printStackTrace();            throw new FenixServiceException(e.getMessage());        }    }