public static boolean isListObjectV2Request(Map<String, Object> args) throws RestServiceException {
    return LIST_TYPE_VERSION_2.equals(RestUtils.getHeader(args, LIST_TYPE, false));
  }
Checks if the request corresponds to the list object V2 type.

@param args The request parameters in a map.
@return true if the request is of type list object V2, false otherwise.
@throws RestServiceException if there is an issue with the request.
ambry-api/src/main/java/com/github/ambry/rest/RestUtils.java