serializer.startDocument();
serializer.startPrefixMapping( "", Namespaces.EXIST_NS );
// write <collection> element
final CollectionImpl cur = (CollectionImpl)current;
final AttributesImpl attr = new AttributesImpl();
//The name should have come from an XmldbURI.toString() call
attr.addAttribute( Namespaces.EXIST_NS, "name", "name", "CDATA", current.getName() );
writeUnixStylePermissionAttributes(attr, currentPerms);
attr.addAttribute( Namespaces.EXIST_NS, "created", "created", "CDATA", "" + new DateTimeValue( cur.getCreationTime() ) );
attr.addAttribute( Namespaces.EXIST_NS, "version", "version", "CDATA", String.valueOf( currVersion ) );
serializer.startElement( Namespaces.EXIST_NS, "collection", "collection", attr );
if(currentPerms instanceof ACLPermission) {