public Builder addTokenFilter(Class<? extends TokenFilterFactory> factory,Map<String,String> params) throws IOException {
  Objects.requireNonNull(factory,"TokenFilter name may not be null");
  tokenFilters.add(applyResourceLoader(newFactoryClassInstance(factory,applyDefaultParams(params))));
  componentsAdded=true;
  return this;
}

public Builder addTokenFilter ( Class < ? extends TokenFilterFactory > factory , Map < String , String > params ) throws IOException { Objects . requireNonNull ( factory , "TokenFilter name may not be null" ) ; tokenFilters . add ( applyResourceLoader ( newFactoryClassInstance ( factory , applyDefaultParams ( params ) ) ) ) ; componentsAdded = true ; return this ; }
adds the given token filter .
