@POST
@Consumes(APPLICATION_FORM_URLENCODED)
public Response enhanceFromForm(@FormParam("content") String content, @FormParam("format") String format, @FormParam("ajax") boolean buildAjaxview, @Context HttpHeaders headers) throws EnhancementException,
IOException {
log.info("enhance from From: " + content);
ContentItem ci = new InMemoryContentItem(content.getBytes("UTF-8"), TEXT_PLAIN);
if(!buildAjaxview){ //rewrite to a normal EnhancementRequest
return enhanceFromData(ci, null, false, null, false, null, false, null, headers);
} else { //enhance and build the AJAX response
enhance(ci);
ContentItemResource contentItemResource = new ContentItemResource(null, ci, uriInfo, "",