public static MessageEncoder getDefaultInstanceForReplMetrics(Configuration conf) {
    return getInstance(conf, MetastoreConf.ConfVars.REPL_MESSAGE_FACTORY.getVarname());
  }
Abstract Factory for the construction of HCatalog message instances.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/messaging/MessageFactory.java