@Override
 public Site getDefaultSite() throws IllegalStateException {
   Site site = siteService.getDefaultSite();
   if (site != null) {
     if (!userCredentials
         .getAssignments()
         .hasPermission(Permission.Guest, Subject.Site, new Reference(site.getId()))) {
       throw new PermissionException("You cannot show this site");
     }
   }
   return site;
 }
 protected void checkSuperAdmin() {
   if (!userCredentials.getAssignments().isSuperAdministrateur()) {
     throw new PermissionException("Only super Administrator can do this");
   }
 }