code: @Override
      public int score(ODataRequestContext requestContext, QueryResult data) {
          if (data.getType() == QueryResult.ResultType.NOTHING || data.getType() != QueryResult.ResultType.EXCEPTION) {
              return DEFAULT_SCORE;
          }
  
          if (data.getData() instanceof ODataBatchException) {
              return MAXIMUM_FORMAT_SCORE;
          }
  
          List<MediaType> accept = requestContext.getRequest().getAccept();
          int batchAcceptScore = scoreByMediaType(accept, MediaType.MULTIPART);
          int contentTypeScore = scoreByContentType(requestContext, MULTIPART);
          int resultScore = max(batchAcceptScore, contentTypeScore);
  
          return resultScore > 0 ? (resultScore + ERROR_EXTRA_SCORE) : DEFAULT_SCORE;
      }
docs: Batch score mechanism exists not only for simple rendering, but also
  for computing batch error scores.
  
  @param requestContext The request context.
  @param data           The data to render.
  @return batch score