public static function getServiceName(ServiceInterface $oauthService)
    {
        if ($oauthService instanceof AbstractService) {
            return $oauthService->service();
        }

        return preg_replace('/^.*\\\\/', '', get_class($oauthService));
    }