" has tried to exceed his storage capacity. current storage=" +
currentUser.getAttachmentsSize() +
", storage capacity=" +
domainConfiguration.getStorageSizeAsLong());
throw new StorageSizeException("User storage exceeded for user " + currentUser.getLogin());
}
attachment.setThumbnail(computeThumbnail(attachment));
attachmentRepository.createAttachment(attachment);