selectedCategories = new ArrayList();
	protected Collection getCategoriesFromRepository(String resourcePath) throws RemoteException, IOException {		selectedCategories = new ArrayList();			IWContext iwc = IWContext.getInstance();		IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwc,IWSlideSession.class);		IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwc,IWSlideService.class);		WebdavRootResource rootResource = session.getWebdavRootResource();		String filePath = resourcePath;		String serverURI = service.getWebdavServerURI();		if(!resourcePath.startsWith(serverURI)) {			filePath = service.getURI(resourcePath);		}		//		System.out.println("Getting categories for "+filePath);		try {			Enumeration enumerator = rootResource.propfindMethod(filePath,new PropertyName("DAV","categories").toString());				StringBuffer value = new StringBuffer();			while(enumerator.hasMoreElements()) {				value.append(enumerator.nextElement());			}				//		System.out.println("Value is "+value);			if(value.length()>0) {				StringTokenizer st = new StringTokenizer(value.toString(),",");				while(st.hasMoreTokens()) {					selectedCategories.add(st.nextToken());				}			}		}catch (HttpException e) {			System.out.println("Warning could not load categories for "+filePath);		}				return selectedCategories;	}