code: public FilterRegistration.Dynamic addFilter(String name, Class<? extends Filter> klass) {
          return addFilter(name, new FilterHolder(requireNonNull(klass)));
      }
docs: Add a filter class.
  
  @param name  the filter's name
  @param klass the filter class
  @return a {@link javax.servlet.FilterRegistration.Dynamic} instance allowing for further configuration