if (components.length == 0) throw new XMLDBException(ErrorCodes.NO_SUCH_COLLECTION, "Could not find collection: " + path.toString());
    public static Collection readCollection(String c, XmlRpcClient rpcClient) throws XMLDBException {    	XmldbURI path;    	try {    		path = XmldbURI.xmldbUriFor(c);    	} catch (URISyntaxException e) {    		throw new XMLDBException(ErrorCodes.INVALID_URI,e);    	}        XmldbURI[] components = path.getPathSegments();        XmldbURI rootName = components[0];        if (XmldbURI.RELATIVE_ROOT_COLLECTION_URI.equals(rootName))            rootName = XmldbURI.ROOT_COLLECTION_URI;        Collection current = new RemoteCollection(rpcClient, null, rootName);         for (int i = 1 ; i < components.length ; i++) {            current = ((RemoteCollection)current).getChildCollection(components[i]);            if (current == null)                throw new XMLDBException(ErrorCodes.NO_SUCH_COLLECTION , "Could not find collection: " + c);        }        return current;    }    