if (examSeason != null) {
((Exam) writtenEvaluation).edit(writtenEvaluationDate, writtenEvaluationStartTime, writtenEvaluationEndTime,
executionCoursesToAssociate, degreeModuleScopeToAssociate, roomsToAssociate, gradeScale, examSeason);
} else if (writtenTestDescription != null) {
final WrittenTest writtenTest = (WrittenTest) writtenEvaluation;
final Date prevTestDate = writtenTest.getDayDate();
final Date prevStartTime = writtenTest.getBeginningDate();
final Date prevTestEnd = writtenTest.getEndDate();
writtenTest.edit(writtenEvaluationDate, writtenEvaluationStartTime, writtenEvaluationEndTime,
executionCoursesToAssociate, degreeModuleScopeToAssociate, roomsToAssociate, gradeScale,
writtenTestDescription);
if (writtenTest.getRequestRoomSentDate() != null) {
if (!prevTestDate.equals(writtenEvaluationDate) || !prevStartTime.equals(writtenEvaluationStartTime)
|| !prevTestEnd.equals(writtenEvaluationEndTime)) {
if (!AccessControl.getPerson().hasRole(RoleType.RESOURCE_ALLOCATION_MANAGER)) {
GOPSendMessageService.requestChangeRoom(writtenTest, prevTestDate, prevStartTime, prevTestEnd);
}