session.evaluate(“@Doclock([Lock])”,document) will work in Java/CORBA.
But a error will occur when you enable document locking on database and attempt to remove a document with method “document.remove” in java.
You can wait Lotus to resolve this problem or
you can use another database for document locking to resolve this bug.