VersionIterator vi = getRealNode().getAllLinearVersions();
List l = new ArrayList();
while (vi.hasNext()) {
l.add((Version) getProvider().getNodeWrapper((Node) vi.nextVersion(), (JCRSessionWrapper) getSession()));
}
return new VersionIteratorImpl(l.iterator(), l.size());
}