} catch (PolicyException e) {
if (jUnitDebug) System.err.println("Policy file not found/readable/valid!");
printOriginStackTrace();
throw new AssertException("Owasp AntiSamy XSS Filter missing a correct policy file.");
}
AntiSamy as = new AntiSamy();
cr = null;
try {
cr = as.scan(original, policy);
} catch (ScanException e) {
logError("XSS Filter scan error", e);
printOriginStackTrace();
} catch (PolicyException e) {
logError("XSS Filter policy error", e);