IndexQuery query = new IndexQuery(null, IndexQuery.TRUNC_RIGHT, ref);
IndexQuery query = new IndexQuery(IndexQuery.TRUNC_RIGHT, ref);
	public void removeCollection(Collection collection) {		Lock lock = dbWords.getLock();		try {			try {				lock.acquire(Lock.WRITE_LOCK);				dbWords.flush();			} catch (LockException e) {				LOG.warn("could not acquire lock on words db", e);				return;			} finally {				lock.release();			}			LOG.debug("removing words ...");			WordRef ref = new WordRef(collection.getId());			IndexQuery query = new IndexQuery(null, IndexQuery.TRUNC_RIGHT, ref);			ArrayList entries = null;			try {				lock.acquire(Lock.WRITE_LOCK);				dbWords.removeAll(query);			} catch (LockException e) {				LOG.warn("could not acquire lock on words db", e);				entries = null;			} finally {				lock.release();			}			LOG.debug("removed words index");		} catch (BTreeException bte) {			LOG.debug(bte);		} catch (IOException ioe) {			LOG.debug(ioe);		} catch (DBException dbe) {			LOG.warn(dbe);		}	}