code: public ItemState getItemState(NodeData parentData, QPathEntry name, ItemType itemType) throws IllegalPathException
     {
        if (itemType != ItemType.UNKNOWN)
        {
           return index.get(new ParentIDQPathBasedKey(parentData.getIdentifier(), name, itemType));
        }
        else
        {
           ItemState state = index.get(new ParentIDQPathBasedKey(parentData.getIdentifier(), name, ItemType.NODE));
           if (state == null)
           {
              state = index.get(new ParentIDQPathBasedKey(parentData.getIdentifier(), name, ItemType.PROPERTY));
           }
           return state;
        }
     }
docs: Get ItemState by parent and item name.
  
  @param parentData
  parent
  @param name
  item name
  @param itemType
  item type
  @return
  @throws IllegalPathException