presto-thrift/src/main/java/io/prestosql/plugin/thrift/ThriftConnectorFactory.java/ThriftConnectorFactory/create
class ThriftConnectorFactory:    @Override
    public Connector create(String catalogName, Map<String, String> config, ConnectorContext context)
    {
        Bootstrap app = new Bootstrap(
                new MBeanModule(),
                new MBeanServerModule(),
                new ConnectorObjectNameGeneratorModule(catalogName),
                new DriftNettyClientModule(),
                binder -> {
                    binder.bind(TypeManager.class).toInstance(context.getTypeManager());
                },
                locationModule,
                new ThriftModule());

        Injector injector = app
                .strictConfig()
                .doNotInitializeLogging()
                .setRequiredConfigurationProperties(config)
                .initialize();

        return injector.getInstance(ThriftConnector.class);
    }