docs: public static CmsResource lookupPage(CmsObject cms, String uri) throws CmsException {
  
          try {
              CmsResource res = cms.readResource(uri);
              return res;
          } catch (CmsVfsResourceNotFoundException e) {
              String detailName = CmsResource.getName(uri).replaceAll("/$", "");
              CmsUUID detailId = cms.readIdForUrlName(detailName);
              if (detailId != null) {
                  return cms.readResource(detailId);
              }
              throw new CmsVfsResourceNotFoundException(
                  org.opencms.db.generic.Messages.get().container(
                      org.opencms.db.generic.Messages.ERR_READ_RESOURCE_1,
                      uri));
          }
      }