Bug 164343 [DataBinding] Realm needs consistent Exception handling strategy
tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/observable/LockRealm.java
}
	/**
	 * @param runnable
	 */
	private void enqueue(Runnable runnable) {
		synchronized (queue) {
			queue.addLast(runnable);
		}
	}
	private Runnable dequeue() {
		synchronized (queue) {
			if (queue.isEmpty()) {
				return null;
			}
			return (Runnable) queue.getFirst();
		}
	}
	public boolean isCurrent() {
		return lockAcquired;
	}
	private void acquireLock() {
		lock.acquire();
		lockAcquired = true;
	}
	private void releaseLock() {
		lockAcquired = false;
		lock.release();
	}
}