uploader.uploadResource(resource);
}
private ResourceIndexer resourceIndexer() {
if (providerName.equals("Redmine")) {
return new IndexFromRedmine();
} else if (providerName.equals("XWiki")) {
return new IndexFromXWiki();
}
throw new RuntimeException("Provider not supported: " + providerName);
}