<CONTEXT>.build(doc.getWiki(), doc.getSpace(), doc.getName(), doc.getVersion(),xwikiObject.getClassName(),xwikiObject.getNumber()).toString();</BUG>} else {<extra_id_0>} else {<BUG>propertiesUri =UriBuilder.fromUri(baseUri).path(ObjectPropertiesResource.class).build(doc.getWiki(), doc.getSpace(), doc.getName(), xwikiObject.getClassName(),xwikiObject.getNumber()).toString();</BUG>}</CONTEXT>
fillObjectSummary(objectSummary, objectFactory, baseUri, doc, xwikiObject, xwikiApi, withPrettyNames);Link objectLink = getObjectLink(objectFactory, baseUri, doc, xwikiObject, useVersion, Relations.OBJECT);objectSummary.getLinks().add(objectLink);String propertiesUri;if (useVersion) {uri(baseUri, ObjectPropertiesAtPageVersionResource.class, doc.getWiki(), doc.getSpace(), doc.getName(),doc.getVersion(), xwikiObject.getClassName(), xwikiObject.getNumber());uri(baseUri, ObjectPropertiesResource.class, doc.getWiki(), doc.getSpace(), doc.getName(),xwikiObject.getClassName(), xwikiObject.getNumber());