presto-main/src/main/java/io/prestosql/metadata/MetadataManager.java/MetadataManager/registerCatalogForQueryId
class MetadataManager:    private void registerCatalogForQueryId(QueryId queryId, ConnectorMetadata metadata)
    {
        catalogsByQueryId.putIfAbsent(queryId.getId(), new ArrayList<>());
        catalogsByQueryId.get(queryId.getId()).add(metadata);
    }