<BUG>String pageTranslationUri =UriBuilder.fromUri(baseUri).path(PageTranslationResource.class).build(doc.getWiki(), doc.getSpace(), doc.getName(), language).toString();</BUG><CONTEXT>}}for (String language : languages) {Translation translation = objectFactory.createTranslation();translation.setLanguage(language);<extra_id_0>Link pageTranslationLink = objectFactory.createLink();pageTranslationLink.setHref(pageTranslationUri);</CONTEXT>
uri(baseUri, PageTranslationResource.class, doc.getWiki(), doc.getSpace(), doc.getName(), language);