enhancementException = e;
}
ContentItemResource contentItemResource = new ContentItemResource(null, ci, uriInfo, "",
serializer, servletContext, enhancementException);
contentItemResource.setRdfSerializationFormat(format);
Viewable ajaxView = new Viewable("/ajax/contentitem", contentItemResource);
ResponseBuilder rb = Response.ok(ajaxView);
rb.header(HttpHeaders.CONTENT_TYPE, TEXT_HTML + "; charset=UTF-8");
addCORSOrigin(servletContext, rb, headers);
return rb.build();
}