Map<String, NodeBean> navNodes = new HashMap<String, NodeBean>();
PortalRequest portalRequest = PortalRequest.getInstance();
SiteQuery.Builder siteQueryBulder = new SiteQuery.Builder();
SiteQuery siteQuery = siteQueryBulder.withSiteTypes(SiteType.SPACE).includeEmptySites(false).build();
List<Site> groupSites = PortalRequest.getInstance().getPortal().findSites(siteQuery);
for (Site site : groupSites) {
// check permissions and handle the special 'guest' site
if (portalRequest.getPortal().hasPermission(portalRequest.getUser(), site.getAccessPermission())