String webDavHttpURL = null;
	private WebDAVBean[] getDavData() {		WebDAVBean[] data;		try {			HttpURL homeUrl = null;			String webDavHttpURL = null;						if (webDavHttpURL == null) {				IWUserContext iwuc = IWContext.getInstance();							IWSlideService ss = (IWSlideService) IBOLookup.getServiceInstance(iwuc.getApplicationContext(), IWSlideService.class);				homeUrl = ss.getWebdavServerURL();			} else {				homeUrl = new HttpURL(webDavHttpURL);			}			homeUrl.setUserinfo("root", "root");			WebdavResource resource = new WebdavResource(homeUrl);			if (resource.exists()) {				data = getDirectoryListing(resource);			} else {				data = new WebDAVBean[] { new WebDAVBean(						"Resource does not exist") };			}		} catch (HttpException ex) {			data = new WebDAVBean[] { new WebDAVBean("Caught HttpException") };		} catch (IOException ex) {			data = new WebDAVBean[] { new WebDAVBean("Caught IOException") };		} catch (NullPointerException ex) {			StackTraceElement[] trace = ex.getStackTrace();			String traceString = null;			for (int i = 0; i < trace.length; i++) {				traceString = traceString + trace[i].toString() + "    \n\r";			}			data = new WebDAVBean[] { new WebDAVBean("Nullpointer: "					+ traceString) };		}		return data;	}