presto-hive/src/main/java/io/prestosql/plugin/hive/HiveModule.java/HiveModule/createMetastoreGetter
class HiveModule:    @Singleton
    @Provides
    public Function<HiveTransactionHandle, SemiTransactionalHiveMetastore> createMetastoreGetter(HiveTransactionManager transactionManager)
    {
        return transactionHandle -> ((HiveMetadata) transactionManager.get(transactionHandle)).getMetastore();
    }