<BUG>}String classUri =UriBuilder.fromUri(baseUri).path(ClassResource.class).build(wikiName, xwikiClass.getName()).toString();</BUG><CONTEXT>Link propertyLink = objectFactory.createLink();propertyLink.setHref(propertyUri);propertyLink.setRel(Relations.SELF);property.getLinks().add(propertyLink);clazz.getProperties().add(property);<extra_id_0>Link classLink = objectFactory.createLink();classLink.setHref(classUri);</CONTEXT>
String classUri = uri(baseUri, ClassResource.class, wikiName, xwikiClass.getName());