public function resource($name)
  {
      if (!isset($this->resources[$name])) {
          throw new Exceptions\ResourceException("Resource $name does not exist!");

          return;
      }

      return $this->resources[$name];
  }