code: public CmsClientProperty getInheritedPropertyObject(CmsClientSitemapEntry entry, String name) {
  
          CmsClientSitemapEntry currentEntry = entry;
          while (currentEntry != null) {
              currentEntry = getParentEntry(currentEntry);
              if (currentEntry != null) {
                  CmsClientProperty folderProp = currentEntry.getOwnProperties().get(name);
                  if (!CmsClientProperty.isPropertyEmpty(folderProp)) {
                      return folderProp.withOrigin(currentEntry.getSitePath());
                  }
              }
          }
          CmsClientProperty parentProp = getParentProperties().get(name);
          if (!CmsClientProperty.isPropertyEmpty(parentProp)) {
              String origin = parentProp.getOrigin();
              String siteRoot = CmsCoreProvider.get().getSiteRoot();
              if (origin.startsWith(siteRoot)) {
                  origin = origin.substring(siteRoot.length());
              }
              return parentProp.withOrigin(origin);
          }
          return null;
  
      }
docs: Gets the property object which would be inherited by a sitemap entry.<p>
  
  @param entry the sitemap entry
  @param name the name of the property
  @return the property object which would be inherited