code: public RestHandlerBuilder addRequestFilter(ContainerRequestFilter filter) {
          if (filter.getClass().getDeclaredAnnotation(PreMatching.class) != null) {
              this.preMatchRequestFilters.add(filter);
          } else {
              this.requestFilters.add(filter);
          }
          return this;
      }
docs: <p>Registers a request filter, which is run before a rest method is executed.</p>
  <p>It will be run after the method has been matched, or if the {@link PreMatching} annotation is applied to the
  filter then it will run before matching occurs.</p>
  
  @param filter The filter to register
  @return This builder