code: public void write(OutputStream outputStream) throws IOException
     {
        try
        {
           this.xmlStreamWriter =
              XMLOutputFactory.newInstance().createXMLStreamWriter(outputStream, Constants.DEFAULT_ENCODING);
           xmlStreamWriter.setNamespaceContext(namespaceContext);
  
           xmlStreamWriter.writeStartDocument();
           xmlStreamWriter.writeStartElement("D", "multistatus", "DAV:");
           xmlStreamWriter.writeNamespace("D", "DAV:");
  
           xmlStreamWriter.writeAttribute("xmlns:b", "urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/");
  
           Iterator<VersionResource> versionIterator = versions.iterator();
           while (versionIterator.hasNext())
           {
              VersionResource versionResource = versionIterator.next();
              xmlStreamWriter.writeStartElement("DAV:", "response");
  
              xmlStreamWriter.writeStartElement("DAV:", "href");
              xmlStreamWriter.writeCharacters(versionResource.getIdentifier().toASCIIString());
              xmlStreamWriter.writeEndElement();
  
              PropstatGroupedRepresentation propstat =
                 new PropstatGroupedRepresentation(versionResource, properties, false);
              PropertyWriteUtil.writePropStats(xmlStreamWriter, propstat.getPropStats());
  
              xmlStreamWriter.writeEndElement();
           }
  
           xmlStreamWriter.writeEndElement();
           xmlStreamWriter.writeEndDocument();
        }
        catch (XMLStreamException exc)
        {
           log.error(exc.getMessage(), exc);
           throw new IOException(exc.getMessage(), exc);
        }
        catch (RepositoryException exc)
        {
           log.error(exc.getMessage(), exc);
           throw new IOException(exc.getMessage(), exc);
        }
     }
docs: {@inheritDoc}