if (rawPhase.getSteps() == null || rawPhase.getSteps().isEmpty()) {
for (int i = 0; i < podSpec.getCount(); i++) {
List<String> taskNames = podSpec.getTasks().stream()
.map(taskSpec -> taskSpec.getName())
.collect(Collectors.toList());
<BUG>if (!CollectionUtils.isEmpty(rawPhase.getTasks())) {
taskNames = rawPhase.getTasks();
}</BUG>
steps.add(from(new DefaultPodInstance(podSpec, i), taskNames));
}

if (rawPhase.getSteps() == null || rawPhase.getSteps().isEmpty()) {
for (int i = 0; i < podSpec.getCount(); i++) {
List<String> taskNames = podSpec.getTasks().stream()
.map(taskSpec -> taskSpec.getName())
.collect(Collectors.toList());
steps.add(from(new DefaultPodInstance(podSpec, i), taskNames));
}
