throw new DomLSEx(LSException.SERIALIZE_ERR, e);
throw new DomLSException(LSException.SERIALIZE_ERR, e);
  public boolean write(Node node, LSOutput output)    throws LSException  {    OutputStream out = output.getByteStream();    try      {        if (out == null)          {            String systemId = output.getSystemId();            try              {                URL url = new URL(systemId);                URLConnection connection = url.openConnection();                connection.setDoOutput(true);                if (connection instanceof HttpURLConnection)                  {                    ((HttpURLConnection) connection).setRequestMethod("PUT");                  }                out = connection.getOutputStream();              }            catch (MalformedURLException e)              {                File file = new File(systemId);                out = new FileOutputStream(file);              }          }        serialize(node, out);        out.flush();        return true;      }    catch (IOException e)      {        throw new DomLSEx(LSException.SERIALIZE_ERR, e);      }  }