class FilterTemplate {

  public String format()
  {
    String s = searchFilter;
    if (!parameters.isEmpty()) {
      for (Map.Entry<String, Object> e : parameters.entrySet()) {
        final String encoded = encode(e.getValue());
        if (encoded != null) {
          s = s.replace("{" + e.getKey() + "}", encoded);
        }
      }
    }
    return s;
  }

  public  FilterTemplate();
  public  FilterTemplate(final String filter);
  public  FilterTemplate(final String filter, final Object[] params);

}