params.addElement(new Boolean(true));
params.addElement(Boolean.TRUE);
	private void uploadAndStore(Resource res) throws XMLDBException {		File file = (File) res.getContent();		byte[] chunk = new byte[MAX_CHUNK_LENGTH];		try {			FileInputStream is = new FileInputStream(file);			int len;			String fileName = null;			Vector params;			while ((len = is.read(chunk)) > -1) {				params = new Vector();				if (fileName != null)					params.addElement(fileName);				params.addElement(chunk);				params.addElement(new Integer(len));				fileName = (String) rpcClient.execute("upload", params);			}			params = new Vector();			params.addElement(fileName);			params.addElement(getPath() + '/' + res.getId());			params.addElement(new Boolean(true));			rpcClient.execute("parseLocal", params);		} catch (FileNotFoundException e) {			throw new XMLDBException(				ErrorCodes.INVALID_RESOURCE,				"could not read resource from file " + file.getAbsolutePath(),				e);		} catch (IOException e) {			throw new XMLDBException(				ErrorCodes.INVALID_RESOURCE,				"failed to read resource from file " + file.getAbsolutePath(),				e);		} catch (XmlRpcException e) {			throw new XMLDBException(ErrorCodes.VENDOR_ERROR, "networking error", e);		}	}