synchronized Reply waitForReply() throws InterruptedException {
            while (reply == null) {
                wait();
            }
            return reply;
        }
This class implements a monitor for waiting for a reply to arrive.
documentapi/src/main/java/com/yahoo/documentapi/messagebus/MessageBusSyncSession.java