if (current == null) throw new XMLDBException(ErrorCodes.NO_SUCH_COLLECTION , "Could not find collection: " + c);
    public static Collection readCollection(String c, XmlRpcClient rpcClient) throws XMLDBException {        String[] components = XmldbURI.getPathComponents(c);        String rootName = components[0];        if (DBBroker.ROOT_COLLECTION_NAME.equals(rootName))            rootName = DBBroker.ROOT_COLLECTION;        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;    }    