String filePath = service.getURI(resourcePath);
String filePath = resourcePath; String serverURI = service.getWebdavServerURI(); if(!resourcePath.startsWith(serverURI)) { filePath = service.getURI(resourcePath); }
	public void processAction(ActionEvent actionEvent) throws AbortProcessingException {		UIComponent comp = actionEvent.getComponent();		resourcePath = (String)comp.getAttributes().get(RESOURCE_PATH);		HtmlInputText newValueInput = (HtmlInputText) actionEvent.getComponent().getParent().findComponent(NEW_VALUES_ID);		UIInput dropdown = (UIInput) comp.getParent().findComponent(DROPDOWN_ID);		String val = "";		String type = "";		if(null!=dropdown) {			val = newValueInput.getValue().toString();			type = dropdown.getValue().toString();		}		MetadataValueBean[] ret = new MetadataValueBean[0];		try {			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);			//Store new settings			if(type.length()>0) {//				System.out.println("Proppatch: filepath="+filePath+" type="+type+" value="+val);				rootResource.proppatchMethod(filePath,new PropertyName("DAV:",type),val,true);				//Also set the metadata on the parent folder				rootResource.proppatchMethod(getParentWOContext(filePath),new PropertyName("DAV:",type),val,true);			}						//Store changes to previously created metadata			WebDAVMetadataResource resource = (WebDAVMetadataResource) IBOLookup.getSessionInstance(					iwc, WebDAVMetadataResource.class);			ret = resource.getMetadata(resourcePath);			for(int i=0; i<ret.length;i++) {				type=ret[i].getType();				val=ret[i].getMetadatavalues();//				System.out.println("type="+type+"  val="+val);				rootResource.proppatchMethod(filePath,new PropertyName("DAV:",type),val,true);				//Also set the metadata on the parent folder				rootResource.proppatchMethod(getParentWOContext(filePath),new PropertyName("DAV:",type),val,true);			}			resource.clear();		} catch (HttpException ex) {			ex.printStackTrace();		} catch (IOException ex) {			ex.printStackTrace();		} catch (NullPointerException ex) {			ex.printStackTrace();		}		UIComponent tmp = comp.getParent();		while ( tmp != null) {			tmp = tmp.getParent();		}	}