@Override
    String generate(ChainVariable inVar, StreamToLoopReplacementContext context) {
      String acc = myOrigin.initAccumulator(inVar, context);
      context.addAfterStep(acc + ".sort(" + (myComparator == null ? "null" : myComparator.getText()) + ");\n");
      return myOrigin.getAccumulatorUpdater(inVar, acc);
    }
@Override
    String generate(ChainVariable inVar, StreamToLoopReplacementContext context)