HashMap assets = new HashMap();
assets.put("map.swf", swfRef.getIndirectReference());
PdfDictionary assetsDictionary = PdfNameTree.writeTree(assets, writer);
content.put(new PdfName("Assets"), assetsDictionary);
PdfArray configurations = new PdfArray();
PdfDictionary configuration = new PdfDictionary();
PdfArray instances = new PdfArray();
PdfDictionary instance = new PdfDictionary();
instance.put(new PdfName("Subtype"), new PdfName("Flash"));
PdfDictionary params = new PdfDictionary();
String chartData = (String) element.getParameterValue(PARAMETER_CHART_DATA);
String vars = "inline_data=" + chartData;
params.put(new PdfName("FlashVars"), new PdfString(vars));
instance.put(new PdfName("Params"), params);
instance.put(new PdfName("Asset"), swfRef.getIndirectReference());
PdfIndirectObject instanceRef = writer.addToBody(instance);
instances.add(instanceRef.getIndirectReference());
configuration.put(new PdfName("Instances"), instances);
PdfIndirectObject configurationRef = writer.addToBody(configuration);
configurations.add(configurationRef.getIndirectReference());
content.put(new PdfName("Configurations"), configurations);