presto-main/src/main/java/io/prestosql/metadata/MetadataManager.java/MetadataManager/getCatalogMetadataForWrite
class MetadataManager:    private CatalogMetadata getCatalogMetadataForWrite(Session session, CatalogName catalogName)
    {
        return transactionManager.getCatalogMetadataForWrite(session.getRequiredTransactionId(), catalogName);
    }