static int mapRejectReason(int state) {
    switch (state) {
    case 1:
      return ACTIVE_BID_CHANGED;
    case 11:
    case 12:
    case 13:
    case 14:
      return BID_NOT_IMPROVED;
    case 15:
    case 16:
      return PRICE_NOT_BEAT;
    default:
      return state;
    }
  }