code: public void refresh(boolean keepChanges) throws InvalidItemStateException, RepositoryException
     {
  
        checkValid();
  
        if (keepChanges)
        {
           dataManager.refresh(this.getData());
        }
        else
        {
           dataManager.rollback(this.getData());
        }
     }
docs: {@inheritDoc}