ContainerSlot slot = elementHandle.getElement( ).getSlot( i );
EmbeddedImage theImage = (EmbeddedImage) images.get( i ); String name = theImage.getName( ); assert !names.contains( name ); names.add( name ); }
	public void rename( DesignElementHandle elementHandle )	{		if ( elementHandle == null )			return;		IElementDefn defn = elementHandle.getElement( ).getDefn( );		if ( defn.getNameOption( ) == MetaDataConstants.REQUIRED_NAME				|| elementHandle.getModuleHandle( ) instanceof LibraryHandle				|| elementHandle.getName( ) != null )			module.makeUniqueName( elementHandle.getElement( ) );		for ( int i = 0; i < defn.getSlotCount( ); i++ )		{			ContainerSlot slot = elementHandle.getElement( ).getSlot( i );			if ( slot != null )			{				for ( int pos = 0; pos < slot.getCount( ); pos++ )				{					DesignElement innerElement = slot.getContent( pos );					rename( innerElement.getHandle( module ) );				}			}		}	}