Enumeration enumerator = rootResource.propfindMethod(filePath,new PropertyName("DAV","categories").toString());  StringBuffer value = new StringBuffer(); while(enumerator.hasMoreElements()) { value.append(enumerator.nextElement()); }   if(value.length()>0) { StringTokenizer st = new StringTokenizer(value.toString(),","); while(st.hasMoreTokens()) { selectedCategories.add(st.nextToken());
try { Enumeration enumerator = rootResource.propfindMethod(filePath,new PropertyName("DAV","categories").toString());  StringBuffer value = new StringBuffer(); while(enumerator.hasMoreElements()) { value.append(enumerator.nextElement());
	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 = service.getURI(resourcePath);		//		System.out.println("Getting categories for "+filePath);		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());			}		}				return selectedCategories;	}