@Override
  public boolean remove(MetricRegistryInfo key) {
    return registries.remove(key) == null;
  }
Implementation of MetricRegistries that does ref-counting.
hbase-metrics/src/main/java/org/apache/hadoop/hbase/metrics/impl/MetricRegistriesImpl.java