private static short getMessageInfoAndMetadataListSerDeVersion(short getResponseVersion) {
    switch (getResponseVersion) {
      case GetResponse.GET_RESPONSE_VERSION_V_1:
        return MessageInfoAndMetadataListSerde.VERSION_1;
      case GetResponse.GET_RESPONSE_VERSION_V_2:
        return MessageInfoAndMetadataListSerde.VERSION_2;
      case GetResponse.GET_RESPONSE_VERSION_V_3:
        return MessageInfoAndMetadataListSerde.VERSION_3;
      case GetResponse.GET_RESPONSE_VERSION_V_4:
        return MessageInfoAndMetadataListSerde.VERSION_4;
      case GetResponse.GET_RESPONSE_VERSION_V_5:
        return MessageInfoAndMetadataListSerde.DETERMINE_VERSION;
      default:
        throw new IllegalArgumentException("Unknown GetResponse version encountered: " + getResponseVersion);
    }
  }
Return the SerDe version for MessageInfoAndMetadataList to use for the given {@link GetResponse} version
@param getResponseVersion the GetResponse version
@return the MessageInfoAndMetadataList SerDe version to use for the given GetResponse version
ambry-protocol/src/main/java/com/github/ambry/protocol/PartitionResponseInfo.java