public static void register(String messageFormat, Class clazz) {
    Method method = requiredMethod(clazz);
    registry.put(messageFormat, method);
  }
Abstract Factory for the construction of HCatalog message instances.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/messaging/MessageFactory.java