private File createCacheXml(String contents) throws IOException {
  File cacheXml=File.createTempFile("cache","xml");
  PrintStream pstream=new PrintStream(cacheXml);
  pstream.print(contents);
  pstream.close();
  return cacheXml;
}

private File createCacheXml ( String contents ) throws IOException { File cacheXml = File . createTempFile ( "cache" , "xml" ) ; PrintStream pstream = new PrintStream ( cacheXml ) ; pstream . print ( contents ) ; pstream . close ( ) ; return cacheXml ; }
creates a temporary cache . xml on the file system .
