if(value.length()>0) { MetadataValueBean mvb = new MetadataValueBean(type, value.toString()); metadataBeans.add(mvb); }
	protected Collection getMetadataFromRepository(String resourcePath) throws RemoteException, IOException {		metadataBeans = 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);				Iterator iter = MetadataUtil.getMetadataTypes().iterator();		while(iter.hasNext()) {			String type = (String)iter.next();//			System.out.println("Getting metadata '"+type+"' for "+filePath);			Enumeration enumerator = rootResource.propfindMethod(filePath,new PropertyName("DAV",type).toString());			StringBuffer value = new StringBuffer();			while(enumerator.hasMoreElements()) {				value.append(enumerator.nextElement());			}//			System.out.println("Value is "+value);			if(value.length()>0) {				MetadataValueBean mvb = new MetadataValueBean(type, value.toString());				metadataBeans.add(mvb);			}		}					return metadataBeans;	}