Vector params = new Vector(); params.addElement( getPath() );
resources = new ArrayList(); childCollections = new HashMap(); Vector params = new Vector(); params.addElement(getPath());
    private void readCollection() throws XMLDBException {        Vector params = new Vector();        params.addElement( getPath() );        Hashtable collection;        try {            collection = (Hashtable) rpcClient.execute( "getCollectionDesc",                params );        } catch ( XmlRpcException xre ) {            throw new XMLDBException( ErrorCodes.VENDOR_ERROR,                xre.getMessage(),                xre );        } catch ( IOException ioe ) {            throw new XMLDBException( ErrorCodes.INVALID_COLLECTION,                "an io error occurred",                ioe );        }        Vector documents = (Vector) collection.get( "documents" );        Vector collections = (Vector) collection.get( "collections" );        String docName;        String childName;        int p;        for ( int i = 0; i < documents.size(); i++ ) {            docName = (String) documents.elementAt( i );            if ( ( p = docName.lastIndexOf( '/' ) ) > -1 )                docName = docName.substring( p + 1 );            addResource( docName );        }        for ( int i = 0; i < collections.size(); i++ ) {            childName = (String) collections.elementAt( i );            try {                CollectionImpl child =                	new CollectionImpl( rpcClient, this, null, getPath() + '/' + childName );                addChildCollection( child );            } catch ( XMLDBException e ) {            }        }    }