try {
CmsSitesRemote siteManager = (CmsSitesRemote) ClientTools.getRemoteBean(CmsSitesRemote.class);
List<CmsSite> sites = siteManager.getDatasets("", "", ClientGlobals.getUser(), ClientGlobals.getCompany(), 0, 0);
Iterator<CmsSite> it = sites.iterator();
while (it.hasNext()) {
CmsSite site = it.next();
CmsPageTreeNode node = new CmsPageTreeNode(site.getTitle(), site, null);
parentNode.add(node);
addPages(site, node);
}
} catch (Exception e) {
logger.error("Error getting remote-interface for CmsPagesBean", e);