if (!(series instanceof LineSeries)) {
if ( series instanceof LineSeries ) { scatterseries.setMarker( ( (LineSeries) series ).getMarker( ) ); } else if ( series instanceof BarSeries || series instanceof PieSeries || series instanceof StockSeries ) {  } else {
    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;        }        ScatterSeries scatterseries = (ScatterSeries) ScatterSeriesImpl.create();        scatterseries.getLineAttributes().setVisible(false);        if (!(series instanceof LineSeries))        {            Marker marker = AttributeFactory.eINSTANCE.createMarker();            marker.setSize(5);            marker.setType(MarkerType.BOX_LITERAL);            marker.setVisible(true);            scatterseries.setMarker(marker);        }        else        {            scatterseries.setMarker(((LineSeries) series).getMarker());        }        // Copy generic series properties        scatterseries.setLabel(series.getLabel());        if (series.getLabelPosition().equals(Position.INSIDE_LITERAL)            || series.getLabelPosition().equals(Position.OUTSIDE_LITERAL))        {            scatterseries.setLabelPosition(Position.ABOVE_LITERAL);        }        else        {            scatterseries.setLabelPosition(series.getLabelPosition());        }        scatterseries.setVisible(series.isVisible());        if (series.eIsSet(ComponentPackage.eINSTANCE.getSeries_Triggers()))        {            scatterseries.getTriggers().addAll(series.getTriggers());        }        if (series.eIsSet(ComponentPackage.eINSTANCE.getSeries_DataPoint()))        {            scatterseries.setDataPoint(series.getDataPoint());        }        if (series.eIsSet(ComponentPackage.eINSTANCE.getSeries_DataDefinition()))        {            scatterseries.getDataDefinition().add(series.getDataDefinition().get(0));        }        // Copy series specific properties        if (series instanceof BarSeries)        {            scatterseries.getLineAttributes().setColor(((BarSeries) series).getRiserOutline());        }        else if (series instanceof PieSeries)        {            scatterseries.getLineAttributes().setColor(((PieSeries) series).getSliceOutline());        }        else if (series instanceof StockSeries)        {            scatterseries.getLineAttributes().setColor(((StockSeries) series).getLineAttributes().getColor());        }        return scatterseries;    }