private void createCollectionReader(Object collectionReaderConfig) throws BaleenException {
  String className=CpeBuilderUtils.getClassNameFromConfig(collectionReaderConfig);
  Map<String,Object> params=CpeBuilderUtils.getParamsFromConfig(collectionReaderConfig);
  if (className == null || className.isEmpty()) {
    throw new BaleenException("No class specified for Collection Reader, or unable to parse");
  }
  Optional<CollectionReaderDescription> desc=createCollectionReader(className,params,READER_DEFAULT_PACKAGE);
  if (desc.isPresent()) {
    setCollectorReader(desc.get());
  }
 else {
    throw new BaleenException(String.format("Could not find or instantiate analysis engine %s",className));
  }
}

private void createCollectionReader ( Object collectionReaderConfig ) throws BaleenException { String className = CpeBuilderUtils . getClassNameFromConfig ( collectionReaderConfig ) ; Map < String , Object > params = CpeBuilderUtils . getParamsFromConfig ( collectionReaderConfig ) ; if ( className == null || className . isEmpty ( ) ) { throw new BaleenException ( "No class specified for Collection Reader, or unable to parse" ) ; } Optional < CollectionReaderDescription > desc = createCollectionReader ( className , params , READER_DEFAULT_PACKAGE ) ; if ( desc . isPresent ( ) ) { setCollectorReader ( desc . get ( ) ) ; } else { throw new BaleenException ( String . format ( "Could not find or instantiate analysis engine %s" , className ) ) ; } }
create a collectionreaderdescription using the current configuration
