@Override
  public void clear() {
    registries.clear();
  }
Implementation of MetricRegistries that does ref-counting.
hbase-metrics/src/main/java/org/apache/hadoop/hbase/metrics/impl/MetricRegistriesImpl.java