<CONTEXT>}return attachmentUri;}</BUG>public static Attachment createAttachment(ObjectFactory objectFactory, URI baseUri,<extra_id_0>public static Attachment createAttachment(ObjectFactory objectFactory, URI baseUri,<BUG>com.xpn.xwiki.api.Attachment xwikiAttachment, String xwikiRelativeUrl, String xwikiAbsoluteUrl,XWiki xwikiApi, Boolean withPrettyNames){</BUG>Attachment attachment = objectFactory.createAttachment();fillAttachment(attachment, objectFactory, baseUri, xwikiAttachment, xwikiRelativeUrl, xwikiAbsoluteUrl,</CONTEXT>
com.xpn.xwiki.api.Attachment xwikiAttachment, String xwikiRelativeUrl, String xwikiAbsoluteUrl, XWiki xwikiApi,{