rt.setBackgroundColor( (ColorDefinition) EcoreUtil.copy( ss.getBackgroundColor( ) ) );
rt.setBackgroundColor( ColorDefinitionImpl.copyInstance( ss.getBackgroundColor( ) ) );
	public IStyle getStyle( Chart model, StyledComponent name )	{		if ( model != null && model.getStyles( ).size( ) > 0 )		{			for ( Iterator itr = model.getStyles( ).iterator( ); itr.hasNext( ); )			{				StyleMap sm = (StyleMap) itr.next( );				if ( sm.getComponentName( ).equals( name ) )				{					Style ss = sm.getStyle( );					SimpleStyle rt = new SimpleStyle( defaultStyle );					if ( ss.getFont( ) != null )					{						rt.setFont( (FontDefinition) EcoreUtil.copy( ss.getFont( ) ) );					}					if ( ss.getColor( ) != null )					{						rt.setColor( (ColorDefinition) EcoreUtil.copy( ss.getColor( ) ) );					}					if ( ss.getBackgroundColor( ) != null )					{						rt.setBackgroundColor( (ColorDefinition) EcoreUtil.copy( ss.getBackgroundColor( ) ) );					}					if ( ss.getBackgroundImage( ) != null )					{						rt.setBackgroundImage( (Image) EcoreUtil.copy( ss.getBackgroundImage( ) ) );					}					if ( ss.getPadding( ) != null )					{						rt.setPadding( (Insets) EcoreUtil.copy( ss.getPadding( ) ) );					}					return rt;				}			}		}		// Always return the default value.		return defaultStyle.copy( );	}