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