lock.acquire(this, Lock.WRITE_LOCK); lock.enter(this);
lock.acquire(Lock.WRITE_LOCK);
	public void sync() {		// uncomment this to get statistics about page buffer usage		dbWords.printStatistics();		Lock lock = dbWords.getLock();		try {			lock.acquire(this, Lock.WRITE_LOCK);			lock.enter(this);			try {				dbWords.flush();			} catch (DBException dbe) {				LOG.warn(dbe);			}		} catch (LockException e) {			LOG.warn("could not acquire lock on words db", e);		} finally {			lock.release(this);		}	}