String path = ((CollectionImpl) res.getParentCollection()).getPath() + '/' + res.getId();
String path = ((RemoteCollection) res.getParentCollection()).getPath() + '/' + res.getId();
	public void setPermissions(Resource res, Permission perms) throws XMLDBException {		String path = ((CollectionImpl) res.getParentCollection()).getPath() + '/' + res.getId();		try {			Vector params = new Vector();			params.addElement(path);			params.addElement(perms.getOwner());			params.addElement(perms.getOwnerGroup());			params.addElement(new Integer(perms.getPermissions()));			parent.getClient().execute("setPermissions", params);		} catch (XmlRpcException e) {			throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e);		} catch (IOException e) {			throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e);		}	}