System.out.println("Waiting for authentication");
modelRoot.getUserMessageLogger().println (Resources.get("Waiting for authentication"));
    public synchronized void setConnection(ConnectionToServer c)        throws IOException, GeneralSecurityException {        setConnectionImpl(c);        synchronized (authMutex) {            if (!authenticated) {                System.out.println("Waiting for authentication");                try {                    authMutex.wait();                } catch (InterruptedException e) {                    //ignore                }                if (!authenticated) {                    throw new GeneralSecurityException("Server rejected " +                        "attempt to authenticate");                }            }        }    }