sw.writeStartElement("D", "lockscope", "DAV:");
if (isExclusive)
sw.writeEmptyElement("D", "exclusive", "DAV:");
else
sw.writeEmptyElement("D", "shared", "DAV:");
sw.writeEndElement(); // lockscope
sw.writeStartElement("D", "locktype", "DAV:");
sw.writeEmptyElement("D", "write", "DAV:");
sw.writeEndElement(); // locktype
sw.writeStartElement("D", "owner", "DAV:");
sw.writeStartElement("D", "href", "DAV:");