code: public void storeAs(File file) throws IOException
      {
          try (FileOutputStream fos = new FileOutputStream(file);
                  OutputStreamWriter osw = new OutputStreamWriter(fos, UTF_8);
                  BufferedWriter bw = new BufferedWriter(osw))
          {
              store(bw);
          }
      }
docs: Stores xml-content to file. This doesn't change stored url/file.
  @param file
  @throws IOException