if (this.startPath != null && this.webDAVPath.indexOf(this.startPath) == -1) { this.webDAVPath = this.startPath; this.startPath = null; } else if(this.webDAVPath == null){
if (startPath != null && useStartPathIfAvailable) { webDAVPath = startPath;  }       if(this.webDAVPath == null){
	private WebDAVBean[] getDavData() {		WebDAVBean[] data;		try {						IWUserContext iwuc = IWContext.getInstance();						IWSlideSession ss = (IWSlideSession) IBOLookup.getSessionInstance(iwuc, IWSlideSession.class);			if (this.startPath != null && this.startPath.equals("/")) {				this.startPath = "";			}			if (this.rootPath != null && this.rootPath.equals("/")) {				this.rootPath = "";			}									if (this.startPath != null && this.webDAVPath.indexOf(this.startPath) == -1) {				this.webDAVPath = this.startPath;				this.startPath = null;			} else if(this.webDAVPath == null){				this.webDAVPath = "";			}						if (this.rootPath != null && this.webDAVPath.indexOf(this.rootPath) == -1) {				this.webDAVPath = this.rootPath;			}						if (ss.getExistence(this.webDAVPath)) {				data = getDirectoryListing(ss.getWebdavResource(this.webDAVPath), ss.getWebdavServerURI());			} else {				data = new WebDAVBean[] { new WebDAVBean("Resource does not exist") };			}		} catch (HttpException ex) {			System.out.println("[HTTPException]:"+ex.getMessage());			System.out.println("[HTTPException]:"+ex.getReason());			System.out.println("[HTTPException]:"+ex.getReasonCode());			ex.printStackTrace();			data = new WebDAVBean[] { new WebDAVBean("Caught HttpException") };		} catch (IOException ex) {			ex.printStackTrace();			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;	}