<BUG>String pageChildrenUri =UriBuilder.fromUri(baseUri).path(PageChildrenResource.class).build(doc.getWiki(), doc.getSpace(), doc.getName()).toString();</BUG><CONTEXT>Link historyLink = objectFactory.createLink();historyLink.setHref(historyUri);historyLink.setRel(Relations.HISTORY);pageSummary.getLinks().add(historyLink);if (!doc.getChildren().isEmpty()) {<extra_id_0>Link pageChildrenLink = objectFactory.createLink();pageChildrenLink.setHref(pageChildrenUri);</CONTEXT>
uri(baseUri, PageChildrenResource.class, doc.getWiki(), doc.getSpace(), doc.getName());