LOG.debug("getting repository info for repository " + repositoryId);
// Because the browser binding silently retrieves all repositories on the first request we call it twice
// and use a dummy extension data element to prevent caching
RepositoryInfo repoInfo = repSvc.getRepositoryInfo(repositoryId, null);
if (bindingType.equals(BindingType.BROWSER)) {
ExtensionDataImpl dummyExt = new ExtensionDataImpl();
List<CmisExtensionElement> extList = new ArrayList<CmisExtensionElement>() {{ add(new CmisExtensionElementImpl("foo", "foo", null, "bar")); }};
dummyExt.setExtensions(extList);
repoInfo = repSvc.getRepositoryInfo(repositoryId, dummyExt);
}
LOG.debug("repository id is: " + repoInfo.getId());
rootFolderId = repoInfo.getRootFolderId();
LOG.debug("root folder id is: " + repoInfo.getRootFolderId());