code: public void replaceValue(List<CmsDataViewValue> replacementValues) {
  
          CmsAttributeHandler handler = (CmsAttributeHandler)m_handler;
          Element parent = CmsDomUtil.getAncestor(
              m_widget.getElement(),
              I_CmsLayoutBundle.INSTANCE.form().attributeValue()).getParentElement();
          NodeList<Node> siblings = parent.getChildNodes();
          for (int j = 0; j < siblings.getLength(); j++) {
              Node node = siblings.getItem(j);
              if (node instanceof Element) {
                  Element elem = (Element)node;
                  if (elem.isOrHasChild(m_widget.getElement())) {
                      m_index = j;
                      break;
                  }
              }
          }
          Panel container = handler.removeAttributeValueAndReturnPrevParent(m_index, true);
          int i = m_index;
          for (CmsDataViewValue value : replacementValues) {
              CmsEntity entity = CmsEntityBackend.getInstance().createEntity(null, m_entity.getTypeName());
  
              writeValueToEntity(value, entity);
  
              // handler.addNewAttributeValue(entity);
              handler.insertNewAttributeValue(entity, i, container);
              i += 1;
          }
  
          handler.updateButtonVisisbility();
      }
docs: Replaces the value in the editor with a list of other values.<p>
  
  @param replacementValues the list of replacement values