public static <PAYLOAD>TermPayloadCoordinator<PAYLOAD> create(Index i){
  String clzStr=i.getIndexProperty(PAYLOAD_COORDINATOR_CLASS_KEY,"");
  try {
    @SuppressWarnings("unchecked") Class<TermPayloadCoordinator<PAYLOAD>> clz=(Class<TermPayloadCoordinator<PAYLOAD>>)Class.forName(clzStr);
    TermPayloadCoordinator<PAYLOAD> pc=clz.newInstance();
    pc.readConfiguration(i);
    return pc;
  }
 catch (  Exception e) {
    throw new RuntimeException(e);
  }
}

public static < PAYLOAD > TermPayloadCoordinator < PAYLOAD > create ( Index i ) { String clzStr = i . getIndexProperty ( PAYLOAD_COORDINATOR_CLASS_KEY , "" ) ; try { @ SuppressWarnings ( "unchecked" ) Class < TermPayloadCoordinator < PAYLOAD > > clz = ( Class < TermPayloadCoordinator < PAYLOAD > > ) Class . forName ( clzStr ) ; TermPayloadCoordinator < PAYLOAD > pc = clz . newInstance ( ) ; pc . readConfiguration ( i ) ; return pc ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } }
instantiate the specific payload coordinator used by the specified index , and configure it for use .
