<BUG>}String spaceUri =UriBuilder.fromUri(baseUri).path(SpaceResource.class).build(doc.getWiki(), doc.getSpace()).toString();</BUG><CONTEXT>pageSummary.setParent(doc.getParent());if (parent != null && !parent.isNew()) {pageSummary.setParentId(parent.getPrefixedFullName());} else {pageSummary.setParentId("");<extra_id_0>Link spaceLink = objectFactory.createLink();spaceLink.setHref(spaceUri);</CONTEXT>
String spaceUri = uri(baseUri, SpaceResource.class, doc.getWiki(), doc.getSpace());