protected function _getResource($entity)
    {
        $model = $this->_getController()->getModel();

        $model->reset()->getState()->setValues(array(
            'package'     => $entity->package,
            'name'        => $entity->name,
            'resource_id' => $entity->row
        ));

        return $model->fetch();
    }