ContainerResponse response =
service(WebDAVMethods.PROPFIND, getPathWS() + "/" + encodedfileName, "", null, allPropsXML.getBytes());
// serialize response entity to string
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
PropFindResponseEntity entity = (PropFindResponseEntity)response.getEntity();
entity.write(outputStream);
String resp = outputStream.toString("UTF-8");
System.out.println("=======PropFind response==========");
System.out.println(resp);
System.out.println("=======Decoded file name==========");