`((PortalNodeSite) current).getSite().getId()` could be put in a variable as it's used multiple times (it would make this a tiny bit more clear)