code: function(result, raw_tag) {
  
  		var config = this.createDefaultWidgetConfig();
  
  		config['extends'] = raw_tag.x.widget;
  		config.container = this._toContainer(raw_tag);
  
  		this._parseViewAttributes(config, raw_tag);
  		// Otherwise, there will be ambiguity between the target of the attribute (widget or it's container)
  		// to set resource_id with x:widget - rewrite the declaration to x:type='container' with <x:widget> inside
  		if (Lava.schema.DEBUG && raw_tag.x && ('resource_id' in raw_tag.x)) Lava.t("x:widget attribute is not compatible with resource_id attribute");
  		if (raw_tag.content) config.template = this.compileTemplate(raw_tag.content, config);
  
  		result.push(config);
  
  	}
docs: Compile tag with x:widget="WidgetName". Represents a widget with explicitly defined Element container
  
  @param {_tTemplate} result
  @param {_cRawTag} raw_tag