public static function fromXml(\DOMElement $xml)
    {
        $static = new static();

        $isRenewable = $xml->getElementsByTagName('renewable');
        $static->isRenewable = BoolLiteral::fromXml($isRenewable);
        $message = $xml->getElementsByTagName('renewableMessage');
        $static->message = StringLiteral::fromXml($message);
        $cost = $xml->getElementsByTagName('renewalCost');
        $static->cost = StringLiteral::fromXml($cost);

        return $static;
    }