code: IndexedContainer getPermissionContainer(CmsPermissionSet permissions) {
  
          IndexedContainer result = new IndexedContainer();
          result.addContainerProperty(PROPERTY_LABEL, String.class, "");
          result.addContainerProperty(PROPERTY_VALUE, Integer.class, null);
          result.addContainerProperty(PROPERTY_ALLOWED, Boolean.class, Boolean.FALSE);
          result.addContainerProperty(PROPERTY_DISPLAY_ALLOWED, Label.class, null);
          result.addContainerProperty(PROPERTY_DENIED, Boolean.class, Boolean.FALSE);
          result.addContainerProperty(PROPERTY_DISPLAY_DENIED, Label.class, null);
          for (String key : CmsPermissionSet.getPermissionKeys()) {
              int flag = CmsPermissionSet.getPermissionValue(key);
              Item entry = result.addItem(key);
              entry.getItemProperty(PROPERTY_LABEL).setValue(CmsVaadinUtils.getMessageText(key));
              entry.getItemProperty(PROPERTY_ALLOWED).setValue(isAllowed(permissions, flag));
              entry.getItemProperty(PROPERTY_DISPLAY_ALLOWED).setValue(getCheckBoxLabel(isAllowed(permissions, flag)));
              entry.getItemProperty(PROPERTY_DENIED).setValue(isDenied(permissions, flag));
              entry.getItemProperty(PROPERTY_DISPLAY_DENIED).setValue(getCheckBoxLabel(isDenied(permissions, flag)));
              entry.getItemProperty(PROPERTY_VALUE).setValue(Integer.valueOf(flag));
          }
  
          return result;
      }
docs: Generates the permissions data container.<p>
  
  @param permissions the permission set
  
  @return the container