public function getResponseObject($settings = null)
    {
        if (!$settings) {
            $settings = $this->getSettings();
        }

        $xml = new DOMDocument();
        $this->root->getHTMLNode($xml, $settings);
        foreach ($this->roots as $root) {
            $root->getHTMLNode($xml, $settings);
        }

        return [
            'app' => $settings->getApps(),
            'screen' => $settings->getScreens(),
            'settings' => [
                'main' => $settings->getPrefix() . $this->root->getId(),
                'maintype' => $this->root instanceof App ? 'app' : 'screen'
            ]
        ];
    }