public void removeItemByIdentity(Item item) {
        int position = findIndexByIdentity(item);
        if (position >= 0)
            item.getParent().removeItem(position);
        else
            item.getParent().removeItem(item); // Fallback to removeField by equal()
    }
Removes this item by identity to ensure we remove the right one if there are multiple
equal items
container-search/src/main/java/com/yahoo/prelude/semantics/engine/Evaluation.java