public function createRequest($class, array $parameters = array())
{
if (!$this->hasToken() && $class != '\\Omnipay\\PayPal\\Message\\RestTokenRequest') {
// This will set the internal token parameter which the parent
// createRequest will find when it calls getParameters().
$this->getToken(true);
}
return parent::createRequest($class, $parameters);
}