class FilterRepository {

  <T extends Filter> Optional<T> getFilter(final String filterId, final Class<T> filterClass) {
    final Filter filter = filters.get(filterId);
    return getIfTypeMatches(filter, filterClass);
  }

  public  FilterRepository();

}