code: public void updateBackupElements(Map<String, CmsContainerElementData> updateElements) {
  
          ArrayList<CmsContainerPageElementPanel> updatedList = new ArrayList<CmsContainerPageElementPanel>();
          String containerId = m_groupContainer.getContainerId();
          for (CmsContainerPageElementPanel element : m_backUpElements) {
              if (updateElements.containsKey(element.getId())
                  && CmsStringUtil.isNotEmptyOrWhitespaceOnly(
                      updateElements.get(element.getId()).getContents().get(containerId))) {
                  CmsContainerElementData elementData = updateElements.get(element.getId());
                  try {
                      CmsContainerPageElementPanel replacer = m_controller.getContainerpageUtil().createElement(
                          elementData,
                          m_groupContainer,
                          false);
                      if (element.getInheritanceInfo() != null) {
                          // in case of inheritance container editing, keep the inheritance info
                          replacer.setInheritanceInfo(element.getInheritanceInfo());
                      }
                      updatedList.add(replacer);
  
                  } catch (Exception e) {
                      // in this case keep the old version
                      updatedList.add(element);
                  }
              } else {
                  updatedList.add(element);
              }
          }
          m_backUpElements = updatedList;
      }
docs: Updates the backup elements.<p>
  
  @param updateElements the updated element data