final public static function load($noconfirmation = false,
                                      $createManialinkElement = true)
    {
        self::$domDocument = new \DOMDocument('1.0', 'utf8');
        self::$parentNodes = array();

        if ($createManialinkElement) {
            $maniacode = self::$domDocument->createElement('maniacode');
            if ($noconfirmation)
                $maniacode->setAttribute('noconfirmation', $noconfirmation);
            self::$domDocument->appendChild($maniacode);
            self::$parentNodes[] = $maniacode;
        }
    }