public List<ExternalIoStage> emitEpilogue(IoContext context) throws IOException {
Set<String> saw = Sets.create();
List<ExternalIoStage> results = Lists.create();
for (Map.Entry<Location, List<Slot>> entry : groupByOutputLocation(context).entrySet()) {
List<Slot> slots = entry.getValue();
List<ResolvedSlot> resolved = new SlotResolver(getEnvironment()).resolve(slots);
if (getEnvironment().hasError()) {
return Collections.emptyList();
}
ParallelSortClientEmitter emitter = new ParallelSortClientEmitter(getEnvironment());
String moduleId = generateModuleName(saw, entry.getKey());