docs: private static void updateProperties(CmsObject cms, CmsResource resource, CmsMacroResolver macroResolver)
      throws CmsException {
  
          Iterator<CmsProperty> it = cms.readPropertyObjects(resource, false).iterator();
          while (it.hasNext()) {
              CmsProperty property = it.next();
              String resValue = null;
              if (property.getResourceValue() != null) {
                  resValue = macroResolver.resolveMacros(property.getResourceValue());
              }
              String strValue = null;
              if (property.getStructureValue() != null) {
                  strValue = macroResolver.resolveMacros(property.getStructureValue());
              }
              CmsProperty newProperty = new CmsProperty(property.getName(), strValue, resValue);
              cms.writePropertyObject(cms.getSitePath(resource), newProperty);
          }
      }