Collection current = new RemoteCollection(rpcClient, null, components[0]);
String rootName = components[0]; if (DBBroker.ROOT_COLLECTION_NAME.equals(rootName)) rootName = DBBroker.ROOT_COLLECTION; Collection current = new RemoteCollection(rpcClient, null, rootName);
    public static Collection readCollection(String c, XmlRpcClient rpcClient) throws XMLDBException {    	String[] components = XmldbURI.getPathComponents(c);    	Collection current = new RemoteCollection(rpcClient, null, components[0]);     	for (int i = 1 ; i < components.length ; i++) {            current = ((RemoteCollection)current).getChildCollection(components[i]);        }        return current;    }