@Deprecated
  default Set<ContainerModel> group(Set<TaskModel> taskModels) {
    throw new UnsupportedOperationException();
  }
Group the taskModels into set of {@link ContainerModel}.

@param taskModels the set of {@link TaskModel} to group into containers.
@return the grouped {@link ContainerModel} built from the provided taskModels.
samza-core/src/main/java/org/apache/samza/container/grouper/task/TaskNameGrouper.java