handler.semanticError( new NameException( null, null,
handler.semanticError( new NameException( element, null,
	protected void initElement( Attributes attrs, boolean nameRequired )	{		DesignElement element = getElement( );		String name = attrs.getValue( DesignElement.NAME_PROP );		if ( StringUtil.isBlank( name ) )		{			if ( nameRequired )				handler.semanticError( new NameException( null, null,						NameException.NAME_REQUIRED ) );		}		else			element.setName( name );		if ( element.getDefn( ).canExtend( ) )		{			element.setExtendsName( attrs					.getValue( DesignSchemaConstants.EXTENDS_ATTRIB ) );			resolveExtendsElement( );		}		else		{			// If "extends" is set on an element that can not be extended,			// exception will be thrown.			if ( !StringUtil.isBlank( attrs					.getValue( DesignSchemaConstants.EXTENDS_ATTRIB ) ) )				handler.semanticError( new DesignParserException(						DesignParserException.ILLEGAL_EXTENDS ) );		}		if ( !addToSlot( container, slotID, element ) )			return;	}