public void onOk(final IMessage okmessage) { stateLock.lock(); try { currentServerState.onOk(okmessage); } finally { stateLock.unlock(); } }