docs: public void removeValue(String name, Locale locale, int index) {
  
          // first get the value from the selected locale and index
          I_CmsXmlContentValue value = getValue(name, locale, index);
  
          if (!value.isChoiceOption()) {
              // check for the min / max occurs constrains
              List<I_CmsXmlContentValue> values = getValues(name, locale);
              if (values.size() <= value.getMinOccurs()) {
                  // must not allow removing an element if min occurs would be violated
                  throw new CmsRuntimeException(
                      Messages.get().container(
                          Messages.ERR_XMLCONTENT_ELEM_MINOCCURS_2,
                          name,
                          new Integer(value.getMinOccurs())));
              }
          }
  
          // detach the value node from the XML document
          value.getElement().detach();
  
          // re-initialize this XML content
          initDocument(m_document, m_encoding, m_contentDefinition);
      }