Rename comment.jsp into comment_OK.jsp; Set Content-Type=text/plain in the JSP.
Clean up: Use a constant for "delegationUser"
Implement: acquireLock(lockType) (without objectId, e.g. for sequences)