code: public void storeSettingsToFile(File file) throws IOException {
      FileOutputStream fos = new FileOutputStream(file);
      this.conf.writeXml(fos);
      fos.close();
    }
docs: Write this location settings to the given output stream
  
  @param out the output stream
  @throws IOException