log.debug("enhance from From: " + content);
ContentItem ci = ciFactory.createContentItem(new StringSource(content));
if(!buildAjaxview){ //rewrite to a normal EnhancementRequest
return enhanceFromData(ci, false, null, false, null, false, null, headers);
} else { //enhance and build the AJAX response
EnhancementException enhancementException;
try {
enhance(ci);
enhancementException = null;
} catch (EnhancementException e){
enhancementException = e;