code: public boolean isNew(String identifier)
     {
  
        ItemState lastState = changesLog.getItemState(identifier);
  
        if (lastState == null || lastState.isDeleted())
        {
           return false;
        }
  
        return changesLog.getItemState(identifier, ItemState.ADDED) != null;
     }
docs: Returns true if the item with <code>identifier</code> is a new item, meaning that it exists
  only in transient storage on the Session and has not yet been saved. Within a transaction,
  isNew on an Item may return false (because the item has been saved) even if that Item is not in
  persistent storage (because the transaction has not yet been committed).
  
  @param identifier
  of the item
  @return boolean