150151152153154155156157158159160
.build(); AttachmentDto attachmentDto = AttachmentDto.fromAttachment(attachment); // GET / attachmentDto.addReflexiveLink(uri, HttpMethod.GET, "self"); return attachmentDto; } private boolean isHistoryEnabled() {