public function setResourceClass($name)
    {
        $this->_resourceClass = App::className($name, 'Model/Resource');

        if (!$this->_resourceClass) {
            throw new MissingResourceClassException([$name]);
        }

        return $this;
    }