InputStream is = null;
try {
IChartLinkGenerator chartLinkGenerator =
contentLinkingTemplate == null ? null : new ChartLinkGenerator( contentLinkingTemplate );
IChartDataModel chartDataModel =
ChartBeanFactory.createChartDataModel( data, scalingFactor, convertNullsToZero, valueColumn, seriesColumn,
categoryColumn, chartModel );
IOutput output = ChartBeanFactory.createChart( chartModel, chartDataModel, chartLinkGenerator );
// Wrap output as necessary
if ( OpenFlashChartPlugin.PLUGIN_ID.equals( chartEngine ) ) {