cmd.setExtendsName( ( (ElementRefValue) value ).getName( ) );
{  String name = ( (ElementRefValue) value ).getName( ); name = ModelUtil.needTheNamespacePrefix( (ElementRefValue) value, null, module ); cmd.setExtendsName( name ); }
	private void setIntrinsicProperty( ElementPropertyDefn prop, Object value )			throws SemanticException	{		String propName = prop.getName( );		if ( DesignElement.NAME_PROP.equals( propName ) )		{			String name = (String) value;			int slotID = element.getContainerSlot( );			DesignElement container = element.getContainer( );			// all elements that have names have container too.			if ( container != null )			{				NameCommand cmd = new NameCommand( module, element,						(SlotDefn) container.getDefn( ).getSlot( slotID ) );				cmd.setName( name );			}			else			{				NameCommand cmd = new NameCommand( module, element, null );				cmd.setName( name );			}		}		else if ( DesignElement.EXTENDS_PROP.equals( propName ) )		{			ExtendsCommand cmd = new ExtendsCommand( module, element );			if ( value == null )				cmd.setExtendsName( null );			else				cmd.setExtendsName( ( (ElementRefValue) value ).getName( ) );		}		else if ( StyledElement.STYLE_PROP.equals( propName ) )		{			StyleCommand cmd = new StyleCommand( module, element );			if ( value == null )				cmd.setStyle( null );			else				cmd.setStyle( ( (ElementRefValue) value ).getName( ) );		}		else if ( ReportDesign.UNITS_PROP.equals( propName ) )		{			doSetProperty( prop, value );		}		else if ( IExtendedItemModel.EXTENSION_NAME_PROP.equals( propName ) )		{			doSetProperty( prop, value );		}		else if ( Module.THEME_PROP.equals( propName ) )		{			ThemeCommand cmd = new ThemeCommand( module, element );			if ( value == null )				cmd.setTheme( null );			else				cmd.setTheme( ( (ElementRefValue) value ).getName( ) );		}		else		{			// Other intrinsics properties will be added here.			assert false;		}	}