if ( !isLocalImage( embeddedImage.getName( ), sourceDesign ) )
if ( !isLocalImage( embeddedImage.getQualifiedReference( ), sourceDesign ) )
	static void resolveImageItem( ReportDesign targetDesign,			ReportDesign sourceDesign, DesignElement target,			DesignElement source )	{		assert targetDesign != null && target != null && source != null;		assert source instanceof ImageItem;		assert target instanceof ImageItem;		StructRefValue embeddedImage = (StructRefValue) source.getProperty(				sourceDesign, ImageItem.IMAGE_NAME_PROP );		if ( embeddedImage == null || !embeddedImage.isResolved( ) )			return;		if ( !isLocalImage( embeddedImage.getName( ), sourceDesign ) )		{			EmbeddedImage targetEmbeddedImage = (EmbeddedImage) embeddedImage					.getTargetStructure( ).copy( );			targetDesign.rename( targetEmbeddedImage );			List images = targetDesign.getListProperty(					targetDesign.getRoot( ), ReportDesign.IMAGES_PROP );			if ( images == null )			{				images = new ArrayList( );				targetDesign.setProperty( ReportDesign.IMAGES_PROP, images );			}			// add the embedded image into the target report deisgn.			images.add( targetEmbeddedImage );			StructRefValue structRef = new StructRefValue( null,					targetEmbeddedImage.getName( ) );			target.setProperty( ImageItem.IMAGE_NAME_PROP, structRef );		}	}