fr.setInitParameter("forceEncoding", "true");
fr.addMappingForUrlPatterns(null, true, "/*");
}
private void addLoggingFilter(ServletContext container) {
FilterRegistration.Dynamic fr = container.addFilter("loggingFilter", new CommonsRequestLoggingFilter());
fr.addMappingForUrlPatterns(null, true, "/*");
}