// Instantiate a new instance of this filter and return it
Class clazz = classLoader.loadClass(filterClass);
this.filter = (Filter) clazz.newInstance();
if (!context.getIgnoreAnnotations()) {
if (context instanceof StandardContext) {
AnnotationProcessor processor = ((StandardContext)context).getAnnotationProcessor();
processor.processAnnotations(this.filter);
processor.postConstruct(this.filter);
}
}
if (context instanceof StandardContext &&
((StandardContext) context).getSwallowOutput()) {
try {