code: public VersionIterator getAllVersions() throws RepositoryException
     {
        checkValid();
  
        List<NodeData> versionsDataList = getData().getAllVersionsData();
  
        EntityCollection versions = new EntityCollection();
  
        for (NodeData vd : versionsDataList)
        {
           versions.add(new VersionImpl(vd, session));
        }
  
        return versions;
  
     }
docs: {@inheritDoc}