public function getRemoteResourceOwner($token)
    {
        $provider = $this->getProvider();

        $realToken = OauthHelper::getRealToken($token);

        switch($this->getOauthVersion())
        {
            case 1:
                return $provider->getUserDetails($realToken);
                break;
            case 2:
                return $provider->getResourceOwner($realToken);
                break;
        }
    }