class MappedKeyMetadataFilter extends MetadataFilterImpl {

  @Override
  public MetadataCollection filter(MetadataCollection original) {
    // As we're changing the key, always create a new copy.
    MetadataCollection result = new MetadataCollection();
    for (MetadataElement e : original) {
      result.add(new MetadataElement(renameKey(e.getKey()), e.getValue()));
    }
    return result;
  }

  public  MappedKeyMetadataFilter();
  public  MappedKeyMetadataFilter(String prefix, String replacement);

}