@Override
  public boolean equals(Object obj) {
    if (obj instanceof MetricRegistryInfo) {
      return this.hashCode() == obj.hashCode();
    } else {
      return false;
    }
  }
Returns whether or not this MetricRegistry is for an existing BaseSource
@return true if this MetricRegistry is for an existing BaseSource.
hbase-metrics-api/src/main/java/org/apache/hadoop/hbase/metrics/MetricRegistryInfo.java