}
	protected void initElement( Attributes attrs, boolean nameRequired )	{		DesignElement element = getElement( );		String name = attrs.getValue( DesignElement.NAME_PROP );		if ( StringUtil.isBlank( name ) )		{			if ( nameRequired )				handler.getErrorHandler( ).semanticError(						new NameException( element, null,								NameException.DESIGN_EXCEPTION_NAME_REQUIRED ) );		}		else		{			element.setName( name );		}		if ( element.getDefn( ).canExtend( ) )		{			String extendsName = attrs					.getValue( DesignSchemaConstants.EXTENDS_ATTRIB );			element.setExtendsName( extendsName );			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						.getErrorHandler( )						.semanticError(								new DesignParserException(										DesignParserException.DESIGN_EXCEPTION_ILLEGAL_EXTENDS ) );		}		initSimpleElement( attrs );	}