code: public void store() throws IOException
      {
          try {
              File file = new File(url.toURI());
              storeAs(file);
          }
          catch (URISyntaxException ex)
          {
              throw new RuntimeException(ex);
          }
      }
docs: Stores contents if url is a file otherwise throws IllegalArgumentException
  @throws IOException