code: protected Boolean isDenied(CmsPermissionSet p, int value) {
  
          if ((p.getDeniedPermissions() & value) > 0) {
              return Boolean.TRUE;
          }
          return Boolean.FALSE;
      }
docs: Checks if a certain permission of a permission set is denied.<p>
  
  @param p the current CmsPermissionSet
  @param value the int value of the permission to check
  @return true if the permission is denied, otherwise false