if ((eventId.equals(BEFORE_DOC_UPDATE) && Boolean.TRUE.equals(dirty)) || (eventId.equals(TRANSITION_EVENT) && !doc.isImmutable())) { service.setModificationDate(doc, cEventDate); service.addContributor(doc, event); } else if (eventId.equals(ABOUT_TO_CREATE)) { service.setCreationDate(doc, cEventDate); service.setModificationDate(doc, cEventDate); service.addContributor(doc, event); } else if (eventId.equals(DOCUMENT_CREATED_BY_COPY) doc.setPropertyValue(DUBLINCORE_LAST_CONTRIBUTOR_PROPERTY, null); service.setCreationDate(doc, cEventDate); service.setModificationDate(doc, cEventDate); service.addContributor(doc, event);