@SuppressWarnings("rawtypes")
public static Flow createFlow(BasePath curWorkingDirPath, BasePath crawlDbPath, FetcherPolicy fetcherPolicy, UserAgent userAgent, BaseUrlFilter urlFilter, DemoCrawlToolOptions options) throws Throwable {
BixoPlatform platform = new BixoPlatform(DemoCrawlWorkflow.class, options.getPlatformMode());
platform.resetNumReduceTasks();
// Input : the crawldb
platform.assertPathExists(crawlDbPath, "CrawlDb doesn't exist");
// Our crawl db is defined by the CrawlDbDatum