code: public void write(OutputStream outputStream) throws IOException
     {
        try
        {
           XMLStreamWriter xmlStreamWriter =
              XMLOutputFactory.newInstance().createXMLStreamWriter(outputStream, Constants.DEFAULT_ENCODING);
           xmlStreamWriter.setNamespaceContext(nsContext);
  
           xmlStreamWriter.writeStartDocument();
           xmlStreamWriter.writeStartElement("D", "multistatus", "DAV:");
           xmlStreamWriter.writeNamespace("D", "DAV:");
  
           xmlStreamWriter.writeAttribute("xmlns:b", "urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/");
  
           for (int i = 0; i < members.size(); i++)
           {
              OrderMember member = members.get(i);
  
              xmlStreamWriter.writeStartElement("DAV:", "response");
  
              xmlStreamWriter.writeStartElement("DAV:", "href");
              String href = uri.toASCIIString() + "/" + TextUtil.escape(member.getSegment(), '%', true);
              xmlStreamWriter.writeCharacters(href);
              xmlStreamWriter.writeEndElement();
  
              xmlStreamWriter.writeStartElement("DAV:", "status");
              xmlStreamWriter.writeCharacters(WebDavConst.getStatusDescription(member.getStatus()));
              xmlStreamWriter.writeEndElement();
  
              xmlStreamWriter.writeEndElement();
           }
  
           xmlStreamWriter.writeEndElement();
           xmlStreamWriter.writeEndDocument();
  
        }
        catch (Exception exc)
        {
           LOG.error(exc.getMessage(), exc);
           throw new IOException(exc);
        }
  
     }
docs: {@inheritDoc}