// replace /live/ by /default/ in href and src attributes as it represents same image
if(original.contains("/files/"+Constants.EDIT_WORKSPACE+"/")||amendment.contains("/files/"+Constants.EDIT_WORKSPACE+"/")) {
original = original.replaceAll("/"+ Constants.LIVE_WORKSPACE+"/","/"+Constants.EDIT_WORKSPACE+"/");
amendment = amendment.replaceAll("/"+ Constants.LIVE_WORKSPACE+"/","/"+Constants.EDIT_WORKSPACE+"/");
}
original = new SourceFormatter(new Source(original)).toString();
amendment = new SourceFormatter(new Source(amendment)).toString();
final ContentHandler postProcess = filter.xsl(result, "jahiahtmlheader.xsl");
final Locale locale = Locale.ENGLISH;
final String prefix = "diff";