categoryColumn, chartModel );
IOutput output = ChartBeanFactory.createChart( chartModel, chartDataModel, chartLinkGenerator );
// Wrap output as necessary
if ( OpenFlashChartPlugin.PLUGIN_ID.equals( chartEngine ) ) {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
output.persistChart( outputStream, getOutputType(), chartWidth, chartHeight );
String persistedChart = new String( outputStream.toByteArray(), "utf-8" ); //$NON-NLS-1$
IPentahoRequestContext requestContext = PentahoRequestContextHolder.getRequestContext();
String flashContent =