code: @Deprecated
    public ArrayList<ItemHistory> getAllItemHistory(
        EpcFormat epcFormat,
        String epcPrefix,
        String jobId,
        String fromZone,
        String toZone,
        String fromFacility,
        String toFacility,
        PresenceConfidence presenceConfidence,
        String facility,
        String pageMarker) {
  
      ItemHistoryResponse response;
      String nextPageMarker = "";
      int pageSize = 1000;
      ArrayList<ItemHistory> items = new ArrayList<>();
  
      do {
        response = this.getItemHistory(
            epcFormat,
            epcPrefix,
            jobId,
            fromZone,
            toZone,
            fromFacility,
            toFacility,
            presenceConfidence,
            facility,
            pageSize,
            nextPageMarker);
        if (response.getHistory() != null) {
          Collections.addAll(items, response.getHistory());
        }
        nextPageMarker = response.getNextPageMarker();
  
      } while (nextPageMarker != null && !nextPageMarker.isEmpty());
  
      return items;
    }
docs: and page marker is redundant