code: public void addFilter(final Filter newFilter) {
      if (headFilter == null) {
        headFilter = newFilter;
        tailFilter = newFilter;
      } else {
        tailFilter.next = newFilter;
        tailFilter = newFilter;
      }
    }
docs: Add a filter to end of the filter list.
  @param newFilter filter to add to end of list.