class AbstractFilter implements Filter {

  private Filter next;

  public AbstractFilter() {
  }

  public AbstractFilter(Filter next) {
    this.next = next;
  }

  @Override
  public void setNext(Filter filter) {
    this.next = filter;
  }

  @Override
  public Filter getNext() {
    return next;
  }

  @Override
  public Filter getLast() {
    Filter last = this;
    while (last.getNext() != null) {
      last = last.getNext();
    }
    return last;
  }

  @Override
  public String execute(Order order) {<FILL_FUNCTION_BODY>}
}

    if (getNext() != null) {
      return getNext().execute(order);
    } else {
      return "";
    }
  
<no_super_class>