docs: private boolean checkAutoCorrection(CmsObject cms, CmsXmlContent content) throws CmsXmlException {
  
          boolean performedAutoCorrection = false;
          try {
              content.validateXmlStructure(new CmsXmlEntityResolver(cms));
          } catch (CmsXmlException eXml) {
              // validation failed
              content.setAutoCorrectionEnabled(true);
              content.correctXmlStructure(cms);
              performedAutoCorrection = true;
          }
          return performedAutoCorrection;
      }