VersionHistoryDelegate vHistory = getVersionManagerDelegate()
.createVersionHistory(dlg.getParent());
Iterator<VersionDelegate> it = vHistory.getAllLinearVersions();
// search for this version ...
while (it.hasNext()) {
VersionDelegate vDlg = it.next();
if (vDlg.getIdentifier().equals(dlg.getIdentifier())
&& it.hasNext()) {
// ... and return next
return new VersionImpl(it.next(), sessionContext);
}
}