public void uploadArtifact(String repository, String artifactUrl, boolean generateObr) throws Exception {
if (getCaveRepositoryService().getRepository(repository) != null) {
throw new IllegalArgumentException("Cave repository " + repository + " doesn't exist");
}
CaveRepository caveRepository = getCaveRepositoryService().getRepository(repository);
caveRepository.upload(new URL(artifactUrl));
if (generateObr) {
getCaveRepositoryService().install(repository);
}
}