<BUG>String homeUri =UriBuilder.fromUri(baseUri).path(PageResource.class).build(wikiName, spaceName, home.getName()).toString();</BUG><CONTEXT>Link pagesLink = objectFactory.createLink();pagesLink.setHref(pagesUri);pagesLink.setRel(Relations.PAGES);space.getLinks().add(pagesLink);if (home != null) {<extra_id_0>Link homeLink = objectFactory.createLink();</CONTEXT>
String homeUri = uri(baseUri, PageResource.class, wikiName, spaceName, home.getName());