Following code works on 9.1 M40
Versioned reviseObj(final Versioned versioned){
Versioned newVersioned = null;
try {
newVersioned = wt.vc.VersionControlHelper.service.newVersion(versioned);
wt.fc.PersistenceHelper.manager.store(newVersioned);
} catch (WTPropertyVetoException e) {
e.printStackTrace();
} catch (WTException e) {
e.printStackTrace();
}
return newVersioned;
}