+ * Calls the current eventhandler\r
+ * \r
+ * @param doclock the lock on the watch file \r
+ */\r
+ protected void callHandler(Lock doclock)\r
+ {\r
+ if (log.isDebugEnabled())\r
+ log.debug("Triggering watchEvent for change on "+watcher.getSubject());\r
+ boolean finish=!handler.handleWatchEvent(this, doclock);\r
+ doclock=null; // TODO: check that lock should really be released rather than dereferenced\r
+ if (finish)\r
+ haltWatch();\r
+ else\r
+ enableWatch();\r
+ handlerCalled=false;\r
+ }\r
+ \r
+ /**\r