public static ReplicationTask create(HCatClient client, HCatNotificationEvent event){
    if (event == null){
      throw new IllegalArgumentException("event should not be null");
    }
    return getFactoryInstance(client).create(client,event);
  }
Factory method to return appropriate subtype of ReplicationTask for given event
@param event HCatEventMessage returned by the notification subsystem
@return corresponding ReplicationTask
hcatalog/webhcat/java-client/src/main/java/org/apache/hive/hcatalog/api/repl/ReplicationTask.java