title: java file system WatchService not picking up file when file is created by another java programm
body: <p>I have implemented WatchService on file system directory. There is another java process which writes to this directory. When i manually create a file in directory, WatchService is able to pick that up but when another java process creates a file in that directory, WatchService is not able to pick that up.
  I'm using below sample code to write to a file. </p>
  
  <pre><code> com.google.common.io.Files.write("test content".getBytes(), new File("/var/tmp/dir/1.txt"));
  </code></pre>