private void createConsumers(List<Object> consumersConfig){
  for (  Object objConsumer : consumersConfig) {
    String className=CpeBuilderUtils.getClassNameFromConfig(objConsumer);
    Map<String,Object> params=CpeBuilderUtils.getParamsFromConfig(objConsumer);
    Optional<AnalysisEngineDescription> desc=createConsumer(className,params,CONSUMER_DEFAULT_PACKAGE);
    if (desc.isPresent()) {
      String name=CpeBuilderUtils.getComponentName(getConsumerNames(),"consumer:" + className);
      addConsumer(name,desc.get());
    }
  }
}

private void createConsumers ( List < Object > consumersConfig ) { for ( Object objConsumer : consumersConfig ) { String className = CpeBuilderUtils . getClassNameFromConfig ( objConsumer ) ; Map < String , Object > params = CpeBuilderUtils . getParamsFromConfig ( objConsumer ) ; Optional < AnalysisEngineDescription > desc = createConsumer ( className , params , CONSUMER_DEFAULT_PACKAGE ) ; if ( desc . isPresent ( ) ) { String name = CpeBuilderUtils . getComponentName ( getConsumerNames ( ) , "consumer:" + className ) ; addConsumer ( name , desc . get ( ) ) ; } } }
create a map of analysisenginedescriptions for the consumers using the current configuration
