logInBothServletAndLoggingSystem("Initializing filter: " + getFilterName());
try {
PropertyValues pvs = new FilterConfigPropertyValues(getFilterConfig(), requiredProperties);
BeanWrapper bw = PropertyAccessorFactory.forBeanPropertyAccess(this);
ResourceLoader resourceLoader = new ServletContextResourceLoader(getServletContext());
bw.registerCustomEditor(Resource.class, new ResourceEditor(resourceLoader));
initBeanWrapper(bw);
bw.setPropertyValues(pvs, true);
} catch (Exception e) {
throw new ServletException("Failed to set bean properties on filter: " + getFilterName(), e);