@Override public DocumentVo updateDocumentContent( String currentFileUUID, InputStream file, long size, String fileName, UserVo ownerVo, String friendlySize) throws BusinessException { Account actor = accountService.findByLsUuid(ownerVo.getLsUuid()); DocumentEntry originalEntry = documentEntryService.findById(actor, currentFileUUID); String originalFileName = originalEntry.getName(); DocumentEntry documentEntry = documentEntryService.updateDocumentEntry(actor, currentFileUUID, file, size, fileName); if (documentEntry.isShared()) { // send email, file has been replaced .... entryService.sendSharedUpdateDocNotification(documentEntry, friendlySize, originalFileName); } return documentEntryTransformer.disassemble(documentEntry); }