presto-main/src/main/java/io/prestosql/metadata/MetadataManager.java/MetadataManager/getCatalogHandle
class MetadataManager:    @Override
    public Optional<CatalogName> getCatalogHandle(Session session, String catalogName)
    {
        return transactionManager.getOptionalCatalogMetadata(session.getRequiredTransactionId(), catalogName).map(CatalogMetadata::getCatalogName);
    }