code: public void store() throws IOException
      {
          try {
              File file = new File(url.toURI());
              try (FileOutputStream fos = new FileOutputStream(file);
                      OutputStreamWriter osw = new OutputStreamWriter(fos, UTF_8);
                      BufferedWriter bw = new BufferedWriter(osw))
              {
                  store(bw);
              }
          }
          catch (URISyntaxException ex)
          {
              throw new RuntimeException(ex);
          }
      }
docs: Stores contents if url is a file otherwise throws IllegalArgumentException
  @throws IOException