final Sanitizer sanitizer = aClass.newInstance();
sanitizer.setProperties(sanitizerProperties);
result.setSanitizer(sanitizer);
} catch (Throwable e) {
LOG.error("Can't create sanitizer: '" + sanitizerClass + "'", e);
result.setSanitizer(new IgnoringSanitizer());
}
}
return result;
}