// the ResponseBody constructor to ignore resource links.
// Since we never return links from this filter, instead of looking
// for the header, we can just always tell the ResponseBody to ignore links.
ResponseBody rb = new ResponseBody(false);
String errorMsg = (String)entity;
rb.addFailure(errorMsg);
resCtx.setEntity(rb, resCtx.getEntityAnnotations(), Constants.MEDIA_TYPE_JSON_TYPE);
}
}