CollectionImpl collection = new CollectionImpl( client, (CollectionImpl) parent, null, name );
RemoteCollection collection = new RemoteCollection( client, (RemoteCollection) parent, null, name );
    public Collection createCollection( String collName ) throws XMLDBException {        String name = collName;        if ( ( !collName.startsWith( "/db" ) ) && parent != null )            name = parent.getPath() + "/" + collName;        Vector params = new Vector();        params.addElement( name );        try {            client.execute( "createCollection", params );        } catch ( XmlRpcException xre ) {            throw new XMLDBException( ErrorCodes.VENDOR_ERROR,                xre.getMessage(),                xre );        } catch ( IOException ioe ) {            throw new XMLDBException( ErrorCodes.VENDOR_ERROR,                ioe.getMessage(),                ioe );        }        CollectionImpl collection =            new CollectionImpl( client, (CollectionImpl) parent, null, name );        parent.addChildCollection( collection );        return collection;    }