docs: public void adjustLocalesForElement(CmsResource elementResource) throws CmsException {
  
          if (m_copyMode != CopyMode.smartCopyAndChangeLocale) {
              return;
          }
  
          CmsFile file = m_cms.readFile(elementResource);
          Locale oldLocale = OpenCms.getLocaleManager().getDefaultLocale(m_cms, m_originalPage);
          Locale newLocale = OpenCms.getLocaleManager().getDefaultLocale(m_cms, m_targetFolder);
          CmsXmlContent content = CmsXmlContentFactory.unmarshal(m_cms, file);
          try {
              content.moveLocale(oldLocale, newLocale);
              LOG.info("Replacing locale " + oldLocale + " -> " + newLocale + " for " + elementResource.getRootPath());
              file.setContents(content.marshal());
              m_cms.writeFile(file);
          } catch (CmsXmlException e) {
              LOG.info(
                  "NOT replacing locale for "
                      + elementResource.getRootPath()
                      + ": old="
                      + oldLocale
                      + ", new="
                      + newLocale
                      + ", contentLocales="
                      + content.getLocales());
          }
  
      }