String path = ((CollectionImpl) res.getParentCollection()).getPath() + '/' + res.getId();
String path = ((RemoteCollection) res.getParentCollection()).getPath() + '/' + res.getId();
	public void chmod(Resource res, String mode) throws XMLDBException {		String path = ((CollectionImpl) res.getParentCollection()).getPath() + '/' + res.getId();		try {			Vector params = new Vector();			params.addElement(path);			params.addElement(mode);			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);		}	}