public PropFindMethod(String uri, int propfindType, DavPropertyNameSet propNameSet,
int depth) throws IOException {
super(uri);
DepthHeader dh = new DepthHeader(depth);
setRequestHeader(dh.getHeaderName(), dh.getHeaderValue());
// build the request body
try {
// create the document and attach the root element
Document document = BUILDER_FACTORY.newDocumentBuilder().newDocument();