* @return
*/
protected String getDiff(Resource resource, String current, String previous, boolean isRichText) {
if(!this.isEnabled()) { return current; }
DiffInfo diffInfo = resource.adaptTo(DiffInfo.class);
return diffInfo.getDiffOutput(this.diffService, current, previous, isRichText);
}