private String getName(FilterConfiguration filter) {
   if (filter.getName() != null) return filter.getName();
   return filter.getClass().getName();
 }
 private Class<? extends Filter> getClass(FilterConfiguration filter) {
   if (filter.getFilter() != null) return filter.getFilter();
   return (Class<? extends Filter>) filter.getClass();
 }
 private Dynamic setInitParameters(Dynamic addFilter, FilterConfiguration filter) {
   addFilter.setInitParameters(filter.getInitParameters());
   return addFilter;
 }
  private void logFilter(FilterConfiguration filter) {

    logger.info("Registering {} filter on {}", filter.getClass().getName(), filter.getMapping()[0]);
  }