addExtensions(generator, fragment);
addMappings(new SourceMappingWriter(generator), sourceMap);
baos.reset();
OutputStreamWriter out = new OutputStreamWriter(baos);
generator.appendTo(out, "sourceMap" + fragment);
out.flush();
toReturn.add(new SymbolMapsLinker.SourceMapArtifact(permutationId, fragment,
baos.toByteArray(), sourceRoot));
fragment++;
}