print(msg);
assertTrue(msg, valid);
// Convert the WRITE lock back to a READ lock:
print("Converting WRITE lock to READ");
service.convert(lock, IEntityLockService.READ_LOCK, readSecs);
msg = "Testing if converted lock is still valid";
valid = service.isValid(lock);
print(msg);
assertTrue(msg, valid);