IWContext iwc = IWContext.getInstance(); WebDAVMetadataResource resource; try { resource = (WebDAVMetadataResource) IBOLookup.getSessionInstance( iwc, WebDAVMetadataResource.class); ret = resource.getMetadata(resourcePath); } catch (IBOLookupException e) { e.printStackTrace(); } catch (RemoteException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace();
if(resourcePath!=null) { IWContext iwc = IWContext.getInstance(); WebDAVMetadataResource resource; try { resource = (WebDAVMetadataResource) IBOLookup.getSessionInstance( iwc, WebDAVMetadataResource.class); ret = resource.getMetadata(resourcePath); } catch (IBOLookupException e) { e.printStackTrace(); } catch (RemoteException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); }
	public WFEditableListDataBean[] getData() {		MetadataValueBean[] ret = new MetadataValueBean[0];		IWContext iwc = IWContext.getInstance();		WebDAVMetadataResource resource;		try {			resource = (WebDAVMetadataResource) IBOLookup.getSessionInstance(					iwc, WebDAVMetadataResource.class);			ret = resource.getMetadata(resourcePath);		}		catch (IBOLookupException e) {			e.printStackTrace();		}		catch (RemoteException e) {			e.printStackTrace();		}		catch (IOException e) {			e.printStackTrace();		}		return ret;	}