final public static function endFrame()
    {
        if (!end(self::$parentNodes)->hasChildNodes()) {
            end(self::$parentNodes)->nodeValue = ' ';
        }
        array_pop(self::$parentNodes);
        array_pop(self::$parentLayouts);
        $frame = array_pop(self::$parentFrames);
        $frame->save();
    }