code: private CmsPermissionSet buildPermissionsForCurrentUser() throws CmsException {
  
          CmsResourceUtil resUtil = new CmsResourceUtil(
              getCms(),
              getCms().readResource(getParamResource(), CmsResourceFilter.ALL));
          return resUtil.getPermissionSet();
      }
docs: Returns the actual real permissions (including role, and any other special check) for the current user.<p>
  
  @return the actual real permissions for the current user
  
  @throws CmsException if something goes wrong