<BUG>String pageTranslationUri =UriBuilder.fromUri(baseUri).path(PageResource.class).build(doc.getWiki(), doc.getSpace(), doc.getName()).toString();</BUG><CONTEXT>if (!languages.isEmpty()) {if (!doc.getDefaultLanguage().equals("")) {translations.setDefault(doc.getDefaultLanguage());Translation translation = objectFactory.createTranslation();translation.setLanguage(doc.getDefaultLanguage());<extra_id_0>Link pageTranslationLink = objectFactory.createLink();pageTranslationLink.setHref(pageTranslationUri);</CONTEXT>
uri(baseUri, PageResource.class, doc.getWiki(), doc.getSpace(), doc.getName());