code: function(element) {
  
  		var widget,
  			raw_template = Lava.TemplateParser.parseRaw(Firestorm.Element.getOuterHTML(element)),
  			raw_tag,
  			config,
  			constructor;
  
  		if (Lava.schema.DEBUG && raw_template.length != 1) Lava.t();
  
  		raw_tag = raw_template[0];
  		config = Lava.parsers.Common.toWidget(raw_tag);
  		config.is_extended = true;
  		config['class'] = raw_tag.attributes['lava-app'];
  
  		if (raw_tag.attributes.id) Firestorm.Element.removeProperty(element, 'id'); // needed for captureExistingElement
  
  		constructor = Lava.ClassManager.getConstructor(config['class'] || 'Lava.widget.Standard', 'Lava.widget');
  		if (Lava.schema.DEBUG && !constructor) Lava.t('Class not found: ' + config['class']);
  		widget = /** @type {Lava.widget.Standard} */ new constructor(config);
  		widget.injectIntoExistingElement(element);
  		return widget;
  
  	}
docs: Convert a DOM element to widget instance
  @param {HTMLElement} element
  @returns {Lava.widget.Standard}