/**
  * {@inheritdoc}
  */
 public function revokeCustomerAccessToken($customerId)
 {
     $tokenCollection = $this->tokenModelCollectionFactory->create()->addFilterByCustomerId($customerId);
     if ($tokenCollection->getSize() == 0) {
         throw new LocalizedException(__('This customer has no tokens.'));
     }
     try {
         foreach ($tokenCollection as $token) {
             $token->setRevoked(1)->save();
         }
     } catch (\Exception $e) {
         throw new LocalizedException(__('The tokens could not be revoked.'));
     }
     return true;
 }