docs: private void adjustSchema(String schemaPath, String newElementString) {
  
          newElementString = newElementString.substring(0, 1).toUpperCase() + newElementString.substring(1);
          try {
              CmsFile file = m_cms.readFile(schemaPath);
  
              CmsMacroResolver macroResolver = new CmsMacroResolver();
              macroResolver.setKeepEmptyMacros(true);
  
              macroResolver.addMacro(SAMPLE_TYPE_SCHEMA_ELEMENT, newElementString);
              String bundleName = m_bundle.getValue();
  
              bundleName = bundleName.split("/")[bundleName.split("/").length - 1];
              if (bundleName.contains("_")) {
                  bundleName = bundleName.split("_")[0];
              }
              macroResolver.addMacro("ResourceBundle", bundleName);
              macroResolver.addMacro("typeName", m_typeShortName.getValue());
              String encoding = m_cms.readPropertyObject(
                  file,
                  CmsPropertyDefinition.PROPERTY_CONTENT_ENCODING,
                  true).getValue(OpenCms.getSystemInfo().getDefaultEncoding());
              String newContent = macroResolver.resolveMacros(new String(file.getContents(), encoding));
              // update the content
              try {
                  file.setContents(newContent.getBytes(encoding));
              } catch (UnsupportedEncodingException e) {
                  try {
                      file.setContents(newContent.getBytes(Charset.defaultCharset().toString()));
                  } catch (UnsupportedEncodingException e1) {
                      file.setContents(newContent.getBytes());
                  }
              }
              // write the target file
              CmsLockUtil.ensureLock(m_cms, file);
              m_cms.writeFile(file);
              CmsLockUtil.tryUnlock(m_cms, file);
          } catch (
  
          CmsException e) {
              LOG.error("Unable to read schema definition", e);
          } catch (UnsupportedEncodingException e) {
              LOG.error("Unable to fetch encoding", e);
          }
      }