private function parseFromXml($simpleXml)
    {
        if (isset($simpleXml->{'card-token'}->{'masked-account-number'})) {
            $this->maskedPan = $simpleXml->{'card-token'}->{'masked-account-number'};
        }
        if (isset($simpleXml->{'card-token'}->{'token-id'})) {
            $this->token = $simpleXml->{'card-token'}->{'token-id'};
        }
    }