presto-hive/src/main/java/io/prestosql/plugin/hive/metastore/HiveMetastoreModule.java/HiveMetastoreModule/setup
class HiveMetastoreModule:    @Override
    protected void setup(Binder binder)
    {
        if (metastore.isPresent()) {
            binder.bind(HiveMetastore.class).toInstance(metastore.get());
        }
        else {
            bindMetastoreModule("thrift", new ThriftMetastoreModule());
            bindMetastoreModule("file", new FileMetastoreModule());
            bindMetastoreModule("glue", new GlueMetastoreModule());
        }
    }