}
public ActionForward updateMarkSheet(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
HttpServletResponse response) throws FenixServiceException {
MarkSheetManagementEditBean editBean = getMarkSheetManagementEditBean();
request.setAttribute("edit", editBean);
ActionMessages actionMessages = createActionMessages();
checkIfTeacherIsResponsibleOrCoordinator(editBean.getCurricularCourse(), editBean.getExecutionPeriod(),
editBean.getTeacherId(), editBean.getTeacher(), request, editBean.getMarkSheet().getMarkSheetType(),
actionMessages);
checkIfEvaluationDateIsInExamsPeriod(editBean.getDegreeCurricularPlan(), editBean.getExecutionPeriod(),
editBean.getEvaluationDate(), editBean.getMarkSheet().getMarkSheetType(), request, actionMessages);
if (actionMessages.isEmpty()) {
try {
EditMarkSheet.run(editBean.getMarkSheet(), editBean.getTeacher(), editBean.getEvaluationDate());
editBean.setEnrolmentEvaluationBeansToEdit(getEnrolmentEvaluationBeansToEdit(editBean.getMarkSheet()));
RenderUtils.invalidateViewState("edit-marksheet-enrolments");
editBean.setEnrolmentEvaluationBeansToAppend(getEnrolmentEvaluationBeansToAppend(editBean.getMarkSheet()));
RenderUtils.invalidateViewState("append-enrolments");
} catch (InvalidArgumentsServiceException e) {
addMessage(request, actionMessages, e.getMessage());
} catch (DomainException e) {