@Override public Either<NegativeResponseStatus, SuccessfulResponse> addAttachment(String issueKey, Attachment attachment) { Either<AttachmentError, Attachment> result = attachmentManager.copyAttachment(attachment, jiraAuthenticationContext.getUser(), issueKey); if (result.isLeft()) { return Either.left(NegativeResponseStatus.errorOccured(jiraLocation, result.left().get().getLogMessage())); } return Either.right(SuccessfulResponse.build(jiraLocation)); }