*/
public static Indexer create(String name, String repositoryName, File outputDirectory) throws IOException {
if (PRE_R5_OBR.equals(name)) {
return new ObrIndexer(repositoryName, outputDirectory);
} else if (R5_OBR.equals(name)) {
return new R5ObrIndexer(repositoryName, outputDirectory);
} else {
throw new IllegalArgumentException("Invalid indexer name: " + name);
}
}