docs: private void checkFinishedPartitions() {
  
          List<String> failingPartitionSeen = new ArrayList<String>();
          boolean stoppedPartitionSeen = false;
  
          for (PartitionReplyMsg replyMsg : finishedWork) {
              BatchStatus batchStatus = replyMsg.getBatchStatus();
  
              if (logger.isLoggable(Level.FINE)) {
                  logger.fine("For partitioned step: " + getStepName() + ", the partition # " +
                              replyMsg.getPartitionPlanConfig().getPartitionNumber() + " ended with status '" + batchStatus);
              }
  
              // Keep looping, just to see the log messages perhaps.
              if (batchStatus.equals(BatchStatus.FAILED)) {
  
                  String msg = "For partitioned step: " + getStepName() + ", the partition # " +
                               replyMsg.getPartitionPlanConfig().getPartitionNumber() + " ended with status '" + batchStatus;
                  failingPartitionSeen.add(msg);
              }
              // This code seems to suggest it might be valid for a partition to end up in STOPPED state without
              // the "top-level" step having been aware of this.   It's unclear from the spec if this is even possible
              // or a desirable spec interpretation.  Nevertheless, we'll code it as such noting the ambiguity.
              //
              // However, in the RI at least, we won't bother updating the step level BatchStatus, since to date we
              // would only transition the status in such a way independently.
              if (batchStatus.equals(BatchStatus.STOPPED)) {
                  stoppedPartitionSeen = true;
              }
          }
  
          if (!failingPartitionSeen.isEmpty()) {
              markStepForFailure();
              rollbackPartitionedStep();
              throw new BatchContainerRuntimeException("One or more partitions failed: " + failingPartitionSeen);
          } else if (isStoppingStoppedOrFailed()) {
              rollbackPartitionedStep();
          } else if (stoppedPartitionSeen) {
  
              // At this point, the top-level job is still running.
              // If we see a stopped partition, we mark the step/job failed
              markStepForFailure();
              rollbackPartitionedStep();
          } else {
              // Call before completion
              if (this.partitionReducerProxy != null) {
                  this.partitionReducerProxy.beforePartitionedStepCompletion();
              }
          }
  
      }