//----------------------------------------
public void renewLock(Uri uri, NodeLock lock) throws ServiceAccessException, LockTokenNotFoundException {
if (locks == null) locks = new Vector();
boolean wasPresent = locks.removeElement(lock);
if (!wasPresent) {
throw new LockTokenNotFoundException(lock);
}
locks.addElement(lock.cloneObject());
save(uri);
}