code: private void waitForCoordinator()
     {
        LOG.info("Waiting to be released by the coordinator");
        try
        {
           lock.await();
        }
        catch (InterruptedException e)
        {
           Thread.currentThread().interrupt();
        }
     }
docs: Make the current node wait until being released by the coordinator