if(resources == null) readCollection();
	public void storeResource(Resource res) throws XMLDBException {		resources.remove(res.getId());		long start = System.currentTimeMillis();		String data = (String) res.getContent();		byte[] bdata = null;		try {			bdata = data.getBytes("UTF-8");		} catch (UnsupportedEncodingException e) {			bdata = data.getBytes();		}		Vector params = new Vector();		params.addElement(bdata);		params.addElement(getPath() + '/' + res.getId());		params.addElement(new Integer(1));		try {			rpcClient.execute("parse", params);		} catch (XmlRpcException xre) {			throw new XMLDBException(ErrorCodes.INVALID_RESOURCE, xre.getMessage(), xre);		} catch (IOException ioe) {			throw new XMLDBException(ErrorCodes.VENDOR_ERROR, ioe.getMessage(), ioe);		}		addResource(res.getId());	}