throw new RuntimeException("Unsupported ResourceIndexer provider " + restProvider);
}
ResourceLoader newResourceLoader() {
if (restProvider.equals(REDMINE)) {
return new LoadFromRedmine(Type.JSON, restUsername, restPassword);
}
if (restProvider.equals(XWIKI)) {
return new LoadFromXWiki(Type.JSON, restUsername, restPassword);
}
if (restProvider.equals(CONFLUENCE)) {