public function validateModelClass($class)
{
$config = $this->getConfig('xero');
if ($class[0] !== '\\') {
$class = sprintf('%s\\%s', $config['model_namespace'], $class);
}
if (!class_exists($class)) {
throw new Exception("Class does not exist [{$class}]");
}
return $class;
}