code: protected List<DistributionSummary> getAllExistingWebDistributions(String bucketName) {
  
          List<DistributionSummary> distListForBucket = new ArrayList<>();
  
          DistributionList distList =
              cfClient.listDistributions(new ListDistributionsRequest())
                      .getDistributionList();
  
          List<DistributionSummary> webDistList = distList.getItems();
          while (distList.isTruncated()) {
              distList = cfClient.listDistributions(
                  new ListDistributionsRequest().withMarker(distList.getNextMarker()))
                                 .getDistributionList();
              webDistList.addAll(distList.getItems());
          }
  
          for (DistributionSummary distSummary : webDistList) {
              if (isDistFromBucket(bucketName, distSummary)) {
                  distListForBucket.add(distSummary);
              }
          }
  
          return distListForBucket;
      }
docs: Determines if a streaming distribution already exists for a given bucket