private void generateReject(Message message, String str) throws FieldNotFound, IOException {
public void generateReject(Message message, String str) throws FieldNotFound, IOException {
    private void generateReject(Message message, String str) throws FieldNotFound, IOException {        String beginString = sessionID.getBeginString();        Message reject = messageFactory.create(beginString, MsgType.REJECT);        reject.reverseRoute(message.getHeader());        initializeHeader(reject.getHeader());        // TODO Why is PossDupFlag needed here? It doesn't appear to be used in        // the C++ code.        // PossDupFlag possDupFlag( false );        boolean possDupFlag = false;        String msgType = message.getHeader().getString(MsgType.FIELD);        String msgSeqNum = message.getHeader().getString(MsgSeqNum.FIELD);        if (beginString.compareTo(FixVersions.BEGINSTRING_FIX42) >= 0) {            reject.setString(RefMsgType.FIELD, msgType);        }        reject.setString(RefSeqNum.FIELD, msgSeqNum);        if (msgType != MsgType.LOGON && msgType != MsgType.SEQUENCE_RESET && !possDupFlag) {            state.incrNextTargetMsgSeqNum();        }        reject.setString(Text.FIELD, str);        sendRaw(reject, 0);        state.getLog().onEvent("Rejecting Message: " + msgSeqNum);    }