public boolean processMsg(CConnection cc) {
    boolean res = true;
    if (state == 0) {
      if (state0 != null)
        res = state0.processMsg(cc);

      if (!res)
        return res;

      state++;
    }

    if (state == 1) {
      if (state1 != null)
        res = state1.processMsg(cc);

      if (!res)
        return res;

      state++;
    }

    return res;
  }