presto-main/src/main/java/io/prestosql/connector/ConnectorManager.java/ConnectorManager/createConnector
class ConnectorManager:    private Connector createConnector(CatalogName catalogName, InternalConnectorFactory factory, Map<String, String> properties)
    {
        ConnectorContext context = new ConnectorContextInstance(
                new ConnectorAwareNodeManager(nodeManager, nodeInfo.getEnvironment(), catalogName),
                versionEmbedder,
                new InternalTypeManager(metadataManager),
                pageSorter,
                pageIndexerFactory,
                factory.getDuplicatePluginClassLoaderFactory());

        try (ThreadContextClassLoader ignored = new ThreadContextClassLoader(factory.getClass().getClassLoader())) {
            return factory.getConnectorFactory().create(catalogName.getCatalogName(), properties, context);
        }
    }