while ( this.queue.isEmpty() )
while ( true )
    protected ProcessContext getNextToCheck() throws InterruptedException    {        ProcessContext context = null;        synchronized( this.queue )        {            while ( this.queue.isEmpty() )            {                this.queue.wait();                if ( ! this.queue.isEmpty() )                {                    context = (ProcessContext) this.queue.getFirst();                    break;                }            }        }        return context;    }