System.out.println("---------ENCODING IS:  " + System.getProperty("file.encoding")+"  ---------------");
	private WebDAVBean[] getDirectoryListing(WebdavExtendedResource headResource, String webDAVServletURL)	throws IOException, HttpException {		System.out.println("---------ENCODING IS:  " + System.getProperty("file.encoding")+"  ---------------");		//System.setProperty("file.encoding","ISO-8859-1");		WebdavResources resources = headResource.listWithDeltaV();//headResource.getChildResources();		Enumeration enumer = resources.getResources();		Vector v = new Vector();		WebDAVBean bean;		WebdavExtendedResource resource;		String url;		if (webDAVPath != null && !"".equals(webDAVPath) && !webDAVPath.equals(rootPath)) {			bean = new WebDAVBean();			int lastIndex = webDAVPath.lastIndexOf("/");			if (lastIndex > 0) {				String dotdot = webDAVPath.substring(0, lastIndex);				bean.setName("Up to "+dotdot);				bean.setWebDavHttpURL(dotdot);			} else {				bean.setName("Up to /");				bean.setWebDavHttpURL("");			}			bean.setIsCollection(true);			v.add(bean);		}				while (enumer.hasMoreElements()) {			resource = (WebdavExtendedResource) enumer.nextElement();			if (!resource.getDisplayName().startsWith(".")) {				bean = new WebDAVBean(resource);				String decoded = resource.getDecodedPath();				String encoded = resource.getEncodedPath();				String path = resource.getPath();				String name = resource.getName();				System.out.println("decoded: "+decoded);				System.out.println("encoded: "+encoded);				System.out.println("path: "+path);				System.out.println("name: "+name);								url = resource.getPath();				url = url.replaceFirst(webDAVServletURL, "");				bean.setWebDavHttpURL(url);//				bean.setParentList(this);//				System.out.println("[WebDAVManagerBean] " +url);				v.add(bean);			}		}		return (WebDAVBean[]) v.toArray(new WebDAVBean[]{});	}