code: public void saveInheritedContainer(
          CmsObject cms,
          CmsResource pageResource,
          String name,
          boolean newOrder,
          List<CmsContainerElementBean> elements)
      throws CmsException {
  
          CmsContainerConfigurationWriter writer = new CmsContainerConfigurationWriter();
          writer.save(cms, name, newOrder, pageResource, elements);
  
          // Inheritance groups are usually reloaded directly after saving them,
          // so the cache needs to be up to date after this method is called
          m_offlineContainerConfigurationCache.flushUpdates();
      }
docs: Saves the inheritance container information.<p>
  
  @param cms the current cms context
  @param pageResource the resource or parent folder
  @param name the inheritance name
  @param newOrder if the element have been reordered
  @param elements the elements
  
  @throws CmsException if something goes wrong