The bean doesn't do anything, it enables you to implement document locking. The bean is cleared when the application scope is cleared.
In my implementations I have an unlock button for the author of the document, so if the author has closed the document by accident. They can unlock it, I have also added a log to the document to see who has unlocked the document.