private String nextToken() {
    return previous == null ? null : nextToken.apply(previous);
  }
Function that actually makes the list API call
scheduling-manager/src/main/java/com/amazonaws/blox/scheduling/state/PaginatedResponseIterator.java