code: public void saveInheritContainer(
          final CmsInheritanceContainer inheritanceContainer,
          final CmsGroupContainerElementPanel groupContainerElement) {
  
          if (getGroupcontainer() != null) {
              CmsRpcAction<Map<String, CmsContainerElementData>> action = new CmsRpcAction<Map<String, CmsContainerElementData>>() {
  
                  /**
                   * @see org.opencms.gwt.client.rpc.CmsRpcAction#execute()
                   */
                  @Override
                  public void execute() {
  
                      start(0, true);
                      getContainerpageService().saveInheritanceContainer(
                          CmsCoreProvider.get().getStructureId(),
                          getData().getDetailId(),
                          inheritanceContainer,
                          getPageState(),
                          getLocale(),
                          this);
                  }
  
                  /**
                   * @see org.opencms.gwt.client.rpc.CmsRpcAction#onResponse(java.lang.Object)
                   */
                  @Override
                  protected void onResponse(Map<String, CmsContainerElementData> result) {
  
                      stop(false);
                      m_elements.putAll(result);
                      try {
                          replaceContainerElement(groupContainerElement, result.get(groupContainerElement.getId()));
                      } catch (Exception e) {
                          CmsDebugLog.getInstance().printLine("Error replacing group container element");
                      }
                      addToRecentList(groupContainerElement.getId(), null);
                      CmsNotification.get().send(
                          Type.NORMAL,
                          Messages.get().key(Messages.GUI_NOTIFICATION_INHERITANCE_CONTAINER_SAVED_0));
  
                  }
              };
              action.execute();
  
          }
      }
docs: Saves the inheritance container.<p>
  
  @param inheritanceContainer the inheritance container data to save
  @param groupContainerElement the group container widget