code: public boolean haveWatch(String path, EventType watchType) {
      return watchedEvents.containsKey(new NamespaceEventKey(path, watchType));
    }
docs: Tests if a watch is placed at the given path and of the given type.
  
  @param path the path where we should test if a watch is placed. For the
  FILE_ADDED event type, this represents the path of the directory
  under which the file will be created.
  @param watchType the type of the event for which we test if a watch is
  present.
  @return <code>true</code> if a watch is placed, <code>false</code>
  otherwise.