public void onDocumentUploaded(DocumentUploadedEvent event) {
Lock lock = activityLockManager.getLock(event.getActorId());
lock.lock();
try {
HDocument document = documentDAO.getById(event.getDocumentId());
ActivityType activityType =
event.isSourceDocument() ? ActivityType.UPLOAD_SOURCE_DOCUMENT
: ActivityType.UPLOAD_TRANSLATION_DOCUMENT;
HPerson actor = personDAO.findById(event.getActorId());
logActivityAlreadyLocked(actor.getId(),
document.getProjectIteration(), document, activityType,