public static function fromLegacyToolbarAction(\SimpleXMLElement $node, $structureExtensionId) {
        $data = array(
            'id'          => (string)$node['id'],
            'extension'   => $structureExtensionId,
            'name'		  => (string)$node['title'],
            'level'		  => (int)$node['level'],
            'description' => empty($text) ? null : $text,
            'binding'     => isset($node['binding']) ? (string)$node['binding'] :  (isset($node['js']) ? (string)$node['js'] : null),
            'structure'   => isset($node['structure']) ? (string)$node['structure'] : null,
            'group'       => self::GROUP_SETTINGS,
            'icon'        => isset($node['icon']) ? Icon::fromArray(array('id' => (string)$node['icon']), $structureExtensionId) : null
        );
        $children = array();
        if (isset($node['structure'])) {
            $children = array();
            // (string)$node['structure']
        }
        return new static($data, $children); 
    }