code: public void saveXml(T jaxbBean, String locationUrl) {
  
      BrowsableResource resource = this.resourceFactory.createBrowsableResource(locationUrl);
      OutputStream outputStream = resource.openOutputStream();
      try {
        saveXml(jaxbBean, outputStream);
      } finally {
        try {
          outputStream.close();
        } catch (IOException e) {
          throw new IllegalStateException("Failed to close stream.", e);
        }
      }
    }
docs: This method saves the given {@code jaxbBean} as XML to the given {@code locationUrl}. <br>
  
  @param jaxbBean is the JAXB-bean to save as XML.
  @param locationUrl is the location URL for the {@link BrowsableResource resource} where to write the XML to.
  Typically a file-URL.