Date oldEvaluationDate = getEvaluationDate();
Date oldEvaluationDate = getEvaluationDateDateTime().toDate();
    public void edit(Teacher responsibleTeacher, Date newEvaluationDate) {        if (isNotConfirmed()) {            checkIfTeacherIsResponsibleOrCoordinator(getCurricularCourse(), getExecutionPeriod(), responsibleTeacher);            checkIfEvaluationDateIsInExamsPeriod(getExecutionDegree(getCurricularCourse(),                    getExecutionPeriod()), getExecutionPeriod(), newEvaluationDate, getMarkSheetType());                        Date oldEvaluationDate = getEvaluationDate();            setResponsibleTeacher(responsibleTeacher);            setEvaluationDate(newEvaluationDate);                        editMarkSheetEnrolmentEvaluationsWithSameEvaluationDate(responsibleTeacher,                    oldEvaluationDate, newEvaluationDate, getEnrolmentEvaluationsSet());                        generateCheckSum();                    } else {            throw new DomainException("error.markSheet.already.confirmed");        }    }