protected function loadResourceInstance()
{
if (!$this->isParent() && in_array($this->params['action'], $this->getCreateActions())) {
return $this->buildResource();
} elseif ($this->getIdParam() || array_key_exists('singleton', $this->options)) {
return $this->findResource();
}
}