code: protected RequestInfoInstanceList convertToRequestInfoList(List<RequestInfo> requests, boolean withErrors, boolean withData) {
  
          RequestInfoInstance[] requestInfos = new RequestInfoInstance[requests.size()];
  
          int index = 0;
          for (RequestInfo request : requests) {
              requestInfos[index] = convertToRequestInfo(request, withErrors, withData);
              index++;
          }
  
          return new RequestInfoInstanceList(requestInfos);
      }
docs: utility methods for conversion