.path(rootResourcePath)
.path(TaskRestService.PATH)
.path(taskId + "/attachment/" + attachment.getId())
.build();
AttachmentDto attachmentDto = AttachmentDto.fromAttachment(attachment);
// GET /
attachmentDto.addReflexiveLink(uri, HttpMethod.GET, "self");
return attachmentDto;
}