code: protected List<ItemState> findItemStates(QPath itemPath)
     {
        List<ItemState> istates = new ArrayList<ItemState>();
        for (ItemState istate : itemAddStates)
        {
           if (istate.getData().getQPath().equals(itemPath))
              istates.add(istate);
        }
        return istates;
     }
docs: Find item states.
  
  @param itemPath item path
  @return List of states