}
toRestore.put(vh.getUUID(), (VersionImpl) v);
}
// create a version selector to the set of versions
VersionSelector vsel = new VersionSelector() {
public Version select(VersionHistory versionHistory) throws RepositoryException {
// try to select version as specified
Version v = toRestore.get(versionHistory.getUUID());
if (v == null) {
// select latest one