private boolean generateLogon() {
private boolean generateLogon() throws IOException {
    private boolean generateLogon() {        Message logon = messageFactory.create(sessionID.getBeginString(), MsgType.LOGON);        logon.setInt(EncryptMethod.FIELD, 0);        logon.setInt(HeartBtInt.FIELD, state.getHeartBeatInterval());        if (isResetNeeded()) {            if (resetOnLogon) {                state.reset();            }            logon.setBoolean(ResetSeqNumFlag.FIELD, true);        }        state.setLastReceivedTime(SystemTime.currentTimeMillis());        state.clearTestRequestCounter();        state.setLogonSent(true);        return sendRaw(logon, 0);    }