code: public Panel removeAttributeValueAndReturnPrevParent(int valueIndex, boolean force) {
  
          if (m_attributeValueViews.size() > valueIndex) {
              CmsAttributeValueView view = m_attributeValueViews.get(valueIndex);
              Panel result = (Panel)view.getParent();
              removeAttributeValue(view, force);
              return result;
          }
          return null;
  
      }
docs: Removes the attribute value (and corresponding widget) with the given index, and returns
  the parent widget.<p>
  
  @param valueIndex the value index
  @param force <code>true</code> if the widget should be removed even if it is the last one
  
  @return the parent widget