protected final BridgeEventQueue getBridgeEventQueue()
{
BridgeContextSession session = getContext().getSession();
synchronized (session)
{
BridgeEventQueue queue = (BridgeEventQueue) getContext().getSession().getValue(KEY_EVENT_QUEUE);
if (queue == null)
{
queue = _threadlessQueue ? new ThreadlessBridgeEventQueue(getSharedThreadedQueue()) : new BridgeEventQueue();
session.putValue(KEY_EVENT_QUEUE, queue);
}
return queue;
}
}