<BUG>com.xpn.xwiki.api.Attachment xwikiAttachment, String xwikiRelativeUrl, String xwikiAbsoluteUrl,XWiki xwikiApi, Boolean withPrettyNames){</BUG><CONTEXT>attachmentLink.setRel(Relations.ATTACHMENT_DATA);attachment.getLinks().add(attachmentLink);return attachment;}public static Attachment createAttachmentAtVersion(ObjectFactory objectFactory, URI baseUri,<extra_id_0>Attachment attachment = new Attachment();</CONTEXT>
com.xpn.xwiki.api.Attachment xwikiAttachment, String xwikiRelativeUrl, String xwikiAbsoluteUrl, XWiki xwikiApi,{