code: private void saveInheritanceGroup(CmsResource resource, CmsInheritanceContainer inheritanceContainer)
      throws CmsException {
  
          CmsObject cms = getCmsObject();
          CmsFile file = cms.readFile(resource);
          CmsXmlContent document = CmsXmlContentFactory.unmarshal(cms, file);
  
          for (Locale docLocale : document.getLocales()) {
              document.removeLocale(docLocale);
          }
          Locale locale = Locale.ENGLISH;
          document.addLocale(cms, locale);
          document.getValue("Title", locale).setStringValue(cms, inheritanceContainer.getTitle());
          document.getValue("Description", locale).setStringValue(cms, inheritanceContainer.getDescription());
          document.getValue("ConfigName", locale).setStringValue(cms, inheritanceContainer.getName());
          byte[] content = document.marshal();
          file.setContents(content);
          cms.writeFile(file);
      }
docs: Saves the inheritance group.<p>
  
  @param resource the inheritance group resource
  @param inheritanceContainer the inherited group container data
  
  @throws CmsException if something goes wrong