code: public static File stringAsTmpFile( String string ) throws Exception {
          File tempFile = File.createTempFile("jgt-", "txt");
          writeFile(string, tempFile);
          return tempFile;
      }
docs: "Converts" a string to a temporary file. <p/> <p>Useful for those modules that want a file in input and one wants
  to use the parameters.</p>
  
  @param string the string to write to the file.
  
  @return the created file.
  
  @throws Exception