/**
  * retrieves the content of an existing file using the current domain
  *
  * @param path The path relative to the domain for the file
  * @return The contents of the file by storing them in local storage or null if method failed
  */
 public File getFile(String path) {
   try {
     if (_isLocal) {
       System.out.println(
           "_rootFile.getCanonicalPath() is >>"
               + _rootFile.getCanonicalPath()
               + File.separatorChar
               + path);
       return new File(_rootFile.getCanonicalPath() + File.separatorChar + path);
     } else {
       byte[] outBytes = _remote.getFile(_domain, path);
       if (outBytes != null) {
         File file = File.createTempFile(Util.generateUniqueFileName(), ".dat");
         FileOutputStream fOut = new FileOutputStream(file);
         fOut.write(outBytes);
         fOut.close();
         return file;
       }
     }
   } catch (Exception ex) {
     ex.printStackTrace();
   }
   return null;
 }