* @see org.eclipse.persistence.jpa.rs.features.FeatureResponseBuilderImpl#buildSingleEntityResponse(org.eclipse.persistence.jpa.rs.PersistenceContext, java.util.Map, java.lang.Object, javax.ws.rs.core.UriInfo)
*/
@Override
public Object buildSingleEntityResponse(PersistenceContext context, Map<String, Object> queryParams, Object result, UriInfo uriInfo) {
if (result instanceof PersistenceWeavedRest) {
ItemLinks itemLinks = new ItemLinks();
ClassDescriptor descriptor = context.getJAXBDescriptorForClass(result.getClass());
PersistenceWeavedRest entity = (PersistenceWeavedRest) result;
String href = HrefHelper.buildEntityHref(context, descriptor.getAlias(), IdHelper.stringifyId(result, descriptor.getAlias(), context));
itemLinks.addItem(new LinkV2(ReservedWords.JPARS_REL_SELF, href));
itemLinks.addItem(new LinkV2(ReservedWords.JPARS_REL_CANONICAL, href));
entity._persistence_setLinks(itemLinks);
}
return result;
}