if(parentColl != null) parentColl.release();
    public Collection createCollection( String collName ) throws XMLDBException {        collName = parent.getPath() + '/' + collName;        DBBroker broker = null;        try {            broker = brokerPool.get(user);            org.exist.collections.Collection coll =                broker.getOrCreateCollection( collName );            broker.saveCollection( coll );            broker.flush();            //broker.sync();        } catch ( EXistException e ) {            throw new XMLDBException( ErrorCodes.VENDOR_ERROR,                "failed to create collection " + collName, e);        } catch ( PermissionDeniedException e ) {            throw new XMLDBException( ErrorCodes.PERMISSION_DENIED,                "not allowed to create collection", e );        } finally {            brokerPool.release( broker );        }        return new LocalCollection( user, brokerPool, parent, collName );    }