public void populateRepository(String name, String url, boolean generateObr, String filter) throws Exception {
if (getCaveRepositoryService().getRepository(name) != null) {
throw new IllegalArgumentException("Cave repository " + name + " doesn't exist");
}
CaveRepository repository = getCaveRepositoryService().getRepository(name);
repository.populate(new URL(url), filter, generateObr);
if (generateObr) {
getCaveRepositoryService().install(name);
}
}