* @param file the file resource to handle;
* @param indexers the indexers to hand of each found JAR file off to.
* @throws Exception in case of problems accessing the found JAR file.
*/
private void handleResource(File baseDir, File file, Indexer[] indexers) throws Exception {
Resource resource = parseResource(baseDir, file);
for (Indexer indexer : indexers) {
indexer.index(resource);
}
}