public static boolean compareContainerModels(JobModel first, JobModel second) {
    if (first == second) {
      return true;
    }

    if (first == null || second == null) {
      return false;
    }

    return Objects.equals(first.getContainers(), second.getContainers());
  }
Compares the {@link ContainerModel}s across the two {@link JobModel}s.
@param first first job model
@param second second job model
@return true - if {@link ContainerModel}s are the same across {@link JobModel}s
        false - otherwise
samza-core/src/main/java/org/apache/samza/job/model/JobModelUtil.java