perform(new SessionOperation<Void>(true) {
@Override
public Void perform() throws RepositoryException {
String oakLabel = sessionContext.getOakName(label);
// will throw VersionException if version does not exist
VersionDelegate version = dlg.getVersion(versionName);
dlg.addVersionLabel(version, oakLabel, moveLabel);
return null;
}
});
}