public function getSelfSubUrl($resource = null) { return $resource === null ? $this->selfSubUrl : $this->selfSubUrl . '/' . $this->getId($resource); }