presto-hive/src/main/java/io/prestosql/plugin/hive/metastore/RecordingHiveMetastore.java/RecordingHiveMetastore/toPairs
class RecordingHiveMetastore:    private static <K, V> List<Pair<K, V>> toPairs(Cache<K, V> cache)
    {
        return cache.asMap().entrySet().stream()
                .map(entry -> new Pair<>(entry.getKey(), entry.getValue()))
                .collect(toImmutableList());
    }