} else { ganttseries.setLabelPosition( series.getLabelPosition( ) ); } ganttseries.setVisible( series.isVisible( ) ); if ( series.eIsSet( ComponentPackage.eINSTANCE.getSeries_Triggers( ) ) ) { ganttseries.getTriggers( ).addAll( series.getTriggers( ) ); } if ( series.eIsSet( ComponentPackage.eINSTANCE.getSeries_DataPoint( ) ) ) { ganttseries.setDataPoint( series.getDataPoint( ) ); } if ( series.eIsSet( ComponentPackage.eINSTANCE.getSeries_DataDefinition( ) ) ) { if ( series.getDataDefinition( ).size( ) != 3 ) {  ganttseries.getDataDefinition( ) .add( EcoreUtil.copy( (Query) series.getDataDefinition( ) .get( 0 ) ) );   ganttseries.getDataDefinition( ) .add( EcoreUtil.copy( (Query) series.getDataDefinition( ) .get( 0 ) ) );   ganttseries.getDataDefinition( ) .add( series.getDataDefinition( ).get( 0 ) ); } ganttseries.getDataDefinition( ) .addAll( series.getDataDefinition( ) ); }   if ( series instanceof BarSeries ) {   ColorDefinition colorDefinition = ( (BarSeries) series ).getRiserOutline( ); if ( colorDefinition != null && ( !colorDefinition.isSetTransparency( ) || colorDefinition.getTransparency( ) != 255 ) ) ganttseries.getConnectionLine( ).setColor( colorDefinition ); } else if ( series instanceof LineSeries ) { ganttseries.setConnectionLine( ( (LineSeries) series ).getLineAttributes( ) );
	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;		}		GanttSeries ganttseries = (GanttSeries) GanttSeriesImpl.create( );		ganttseries.getConnectionLine( ).setVisible( true );		ganttseries.getConnectionLine( )				.setColor( ColorDefinitionImpl.BLACK( ) );		// Copy generic series properties		ganttseries.setLabel( series.getLabel( ) );		if ( series.getLabelPosition( ).equals( Position.OUTSIDE_LITERAL ) )		{			ganttseries.setLabelPosition( Position.ABOVE_LITERAL );		}		else		{			ganttseries.setLabelPosition( series.getLabelPosition( ) );		}		ganttseries.setVisible( series.isVisible( ) );		if ( series.eIsSet( ComponentPackage.eINSTANCE.getSeries_Triggers( ) ) )		{			ganttseries.getTriggers( ).addAll( series.getTriggers( ) );		}		if ( series.eIsSet( ComponentPackage.eINSTANCE.getSeries_DataPoint( ) ) )		{			ganttseries.setDataPoint( series.getDataPoint( ) );		}		if ( series.eIsSet( ComponentPackage.eINSTANCE.getSeries_DataDefinition( ) ) )		{			if ( series.getDataDefinition( ).size( ) != 3 )			{				// For Row Label value				ganttseries.getDataDefinition( )						.add( EcoreUtil.copy( (Query) series.getDataDefinition( )								.get( 0 ) ) );				// For Start value				ganttseries.getDataDefinition( )						.add( EcoreUtil.copy( (Query) series.getDataDefinition( )								.get( 0 ) ) );				// For End value				ganttseries.getDataDefinition( )						.add( series.getDataDefinition( ).get( 0 ) );			}			ganttseries.getDataDefinition( )					.addAll( series.getDataDefinition( ) );		}		// 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 ) )				ganttseries.getConnectionLine( ).setColor( colorDefinition );		}		else if ( series instanceof LineSeries )		{			ganttseries.setConnectionLine( ( (LineSeries) series ).getLineAttributes( ) );		}		return ganttseries;	}