Header.Compression compression = Header.decideCompression(true, swf.getVersion(), false);
final ISWFWriterFactory writerFactory = SWFWriterAndSizeReporter.getSWFWriterFactory(
targetSettings.getSizeReport());
final ISWFWriter writer = writerFactory.createSWFWriter(optimizedSWF, compression, targetSettings.isDebugEnabled());
int swfSize = writer.writeTo(outputFile);
long endTime = System.nanoTime();
String seconds = String.format("%5.3f", (endTime - startTime) / 1e9);
Map<String, Object> params = new HashMap<String, Object>();
params.put("byteCount", swfSize);