public function flushState()
    {
        parent::flushState();
        if($mode = $this->getMode()) {
            $this->setMode($mode);
        }
        $this->setUriCharge();
        $this->setUriToken();
        $this->setUriCustomer();
        $this->setUriProvider();
        $this->setUriRecurringPayments();

    }