File catWriteDir = new File( catWriteDirPath );
File collectionFile = new File( collectionPath );
CrawlableDataset collectionCrDs = new CrawlableDatasetFile( collectionFile );
InvService service = new InvService( "myServer", "File", collectionCrDs.getPath() + "/", null, null);
CrawlableDatasetFilter filter = null;
CrawlableDataset topCatCrDs = collectionCrDs.getDescendant( startPath );
CatGenAndWrite cgaw = new CatGenAndWrite( "DATA", "My data", "", service,
collectionCrDs, topCatCrDs, filter, null, catWriteDir );