public StopTask stopTaskFor(final Task task) {
    return StopTask.builder()
        .clusterName(environment.getClusterName())
        .task(task.getTaskDefinitionArn())
        .reason(
            String.format(
                "Stopped by deployment to %s@%s",
                environment.getEnvironmentName(), environment.getTaskDefinitionArn()))
        .build();
  }
Wrapper around {@link EnvironmentDescription} that makes it easy to match {@link
com.amazonaws.blox.scheduling.state.ClusterSnapshot.Task} instances to a Daemon environment.
scheduling-manager/src/main/java/com/amazonaws/blox/scheduling/scheduler/engine/daemon/DaemonEnvironment.java