presto-hive/src/main/java/io/prestosql/plugin/hive/metastore/cache/CachingHiveMetastore.java/WithIdentity/equals
class WithIdentity:        @Override
        public boolean equals(Object o)
        {
            if (this == o) {
                return true;
            }
            if (o == null || getClass() != o.getClass()) {
                return false;
            }
            WithIdentity<?> other = (WithIdentity<?>) o;
            return hashCode == other.hashCode &&
                    Objects.equals(identity, other.identity) &&
                    Objects.equals(key, other.key);
        }