public String generate( List<PropFindResponse> propFindResponses ) {
ByteArrayOutputStream responseOutput = new ByteArrayOutputStream();
Map<String, String> mapOfNamespaces = helper.findNameSpaces( propFindResponses );
ByteArrayOutputStream generatedXml = new ByteArrayOutputStream();
XmlWriter writer = new XmlWriter( generatedXml );
writer.writeXMLHeader();
writer.open(WebDavProtocol.NS_DAV.getPrefix() ,"multistatus" + helper.generateNamespaceDeclarations( mapOfNamespaces ) );
writer.newLine();
helper.appendResponses( writer, propFindResponses, mapOfNamespaces );
writer.close(WebDavProtocol.NS_DAV.getPrefix(),"multistatus" );
writer.flush();