if (ri instanceof RepositoryInfoBrowserBindingImpl) {
String repositoryUrl = ((RepositoryInfoBrowserBindingImpl) ri).getRepositoryUrl();
String rootUrl = ((RepositoryInfoBrowserBindingImpl) ri).getRootUrl();
if (id == null || repositoryUrl == null || rootUrl == null) {
throw new CmisConnectionException("Found invalid Repository Info! (id: " + id + ")");
}
getRepositoryUrlCache().addRepository(id, repositoryUrl, rootUrl);
}
repInfos.add(ri);
} else {
throw new CmisConnectionException("Found invalid Repository Info!");
}
}
return repInfos;
}