private Series getConvertedSeries( Series series )
private Series getConvertedSeries( Series series, int seriesIndex )
	private Series getConvertedSeries( Series series )	{		// Do not convert base series		if ( series.getClass( )				.getName( )				.equals( "org.eclipse.birt.chart.model.component.impl.SeriesImpl" ) ) //$NON-NLS-1$		{			return series;		}		StockSeries stockseries = (StockSeries) StockSeriesImpl.create( );		stockseries.getLineAttributes( )				.setColor( ColorDefinitionImpl.BLACK( ) );		// Copy generic series properties		ChartUIUtil.copyGeneralSeriesAttributes( series, stockseries );		// Copy series specific properties		if ( series instanceof BarSeries )		{			// Stock series with transparent fillCandle cannot display			// propertly. Fix it during conversion if needed.			ColorDefinition colorDefinition = ( (BarSeries) series ).getRiserOutline( );			if ( colorDefinition != null					&& ( !colorDefinition.isSetTransparency( ) || colorDefinition.getTransparency( ) != 255 ) )				stockseries.getLineAttributes( ).setColor( colorDefinition );		}		else if ( series instanceof LineSeries )		{			stockseries.setLineAttributes( ( (LineSeries) series ).getLineAttributes( ) );		}		stockseries.getLineAttributes( ).setVisible( true );		return stockseries;	}