public Item removeItem(int index) {
        Item item = subitems.remove(index);

        removing(item);
        return item;
    }
Removes the item at the given index

@param  index the index of the item to remove
@return the removed item
@throws IndexOutOfBoundsException if there is no item at the given index
container-search/src/main/java/com/yahoo/prelude/query/CompositeItem.java