code: public boolean exportUserHasReadPermission() {
  
          String vfsName = getParamResource();
          CmsObject cms = getCms();
          try {
              // static export must always be checked with the export users permissions,
              // not the current users permissions
              CmsObject exportCms = OpenCms.initCmsObject(OpenCms.getDefaultUsers().getUserExport());
              exportCms.getRequestContext().setSiteRoot(getCms().getRequestContext().getSiteRoot());
              // let's look up if the export user has the permission to read
              return exportCms.hasPermissions(
                  cms.readResource(vfsName, CmsResourceFilter.IGNORE_EXPIRATION),
                  CmsPermissionSet.ACCESS_READ);
          } catch (CmsException e) {
              // ignore this exception
          }
          return false;
      }
docs: Returns true if the export user has read permission on a specified resource.<p>
  
  @return true, if the export user has the permission to read the resource