}
// add the properties required by the webDAV client
private void addRequiredProperties() {
if (underLineResource instanceof Collection) {
addDavProperty(DavPropertyName.RESOURCETYPE, new ResourceType(ResourceType.COLLECTION));
// Windows XP support
addDavProperty(DavPropertyName.ISCOLLECTION, "1");
} else {
addDavProperty(DavPropertyName.RESOURCETYPE, new ResourceType(ResourceType.DEFAULT_RESOURCE));
// Windows XP support
addDavProperty(DavPropertyName.ISCOLLECTION, "0");
addDavProperty(DavPropertyName.GETCONTENTLENGTH, getContentLength());
addDavProperty(DavPropertyName.GETCONTENTTYPE, underLineResource.getMediaType());
}