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