Call the CasCrawler.listCrawls() method to list the existing crawls.
CasCrawler.listCrawls()
The method returns a List<CrawlId> object, which has zero or more CrawlId objects. Each CrawlId has the name of a crawl.
To list the set of existing crawls:
List<CrawlId> crawlList = crawler.listCrawls();
System.out.println("There are " + crawler.listCrawls().size() + " crawls configured");
The CasCrawler.listCrawls() method does not throw an exception if it fails.