if ( StyledElement.STYLE_PROP.equals( prop.getName( ) ) )
if ( IStyledElementModel.STYLE_PROP.equals( prop.getName( ) ) )
	public static void distributeValues( DesignElement element,			Map overriddenValues )	{		if ( element == null )			return;		ContentIterator contentIterator = new ContentIterator( element );		while ( contentIterator.hasNext( ) )		{			DesignElement content = (DesignElement) contentIterator.next( );			Long baseId = new Long( content.getID( ) );			if ( overriddenValues == null || overriddenValues.isEmpty( ) )				continue;			List values = (List) overriddenValues.get( baseId );			if ( values == null || values.isEmpty( ) )				continue;			for ( int i = 0; i < values.size( ); i++ )			{				Property prop = (Property) values.get( i );				// TODO if the name is set, add it to name space.				// the intrinsic style property must use setStyle().				if ( StyledElement.STYLE_PROP.equals( prop.getName( ) ) )					( (StyledElement) content ).setStyleName( (String) prop							.getValue( ) );				else					content.setProperty( prop.getName( ), prop.getValue( ) );			}		}	}