code: public File getFile()
     {
        File file = (File)this.getSource();
        
        if(file != null)
            FileMonitor.waitFor(file);
        
        return file;
    
     }
docs: Uses  FileMonitor.waitFor(file)
  @return the source file