code: public ItemState getLastState(ItemData item, boolean forNode)
     {
        Map<String, ItemState> children =
           forNode ? lastChildNodeStates.get(item.getParentIdentifier()) : lastChildPropertyStates.get(item
              .getParentIdentifier());
  
        return children == null ? null : children.get(item.getIdentifier());
     }
docs: Return the last item state from ChangesLog.
  
  @param item
  an item data the last state which need to be taken
  @param forNode
  retrieves nodes' ItemStates is true, or properties' otherwise
  @return the last item state