/** {@inheritDoc} */
 public function revokeToken($token)
 {
     try {
         $this->getUserStore()->revokeLongSession($token);
     } catch (\Exception $e) {
         $e = ExceptionFactory::create($e);
         throw new AuthenticationException('OAuth Error', 0, $e);
     }
 }
 /**
  * @return \EDAM\UserStore\AuthenticationResult
  * @throws \Exception
  */
 protected function getBusinessAuth()
 {
     if (null === $this->businessAuth) {
         try {
             $this->businessAuth = $this->getAdvancedClient()->getUserStore()->authenticateToBusiness($this->token);
         } catch (\Exception $e) {
             throw ExceptionFactory::create($e);
         }
     }
     return $this->businessAuth;
 }