assert model != null;
Location base = environment.getStageLocation(model.getStageBlock().getStageNumber());
List<Delivery> deliveries = Lists.create();
for (StageModel.Sink sink : model.getStageResults()) {
Location location = base.append(sink.getName()).asPrefix();
deliveries.add(new Delivery(sink.getOutputs(), Collections.singleton(location)));
}
return deliveries;
}