public void removeItem(int position,Item item) {
        Item removeCandidate = item.getParent().getItem(position);
        if (removeCandidate.equals(item)) // Remove based on position
            item.getParent().removeItem(position);
        else
            item.getParent().removeItem(item); // Otherwise, just removeField any such item
    }
Removes an item, prefers the one at/close to the given position if there are multiple ones
container-search/src/main/java/com/yahoo/prelude/semantics/engine/Evaluation.java