protected function isValidTemplate($p_templateName) { if (is_null($this->m_issue) || !$this->m_issue->defined()) { return false; } $resourceId = new ResourceId(__CLASS__); $syncResService = $resourceId->getService(ISyncResourceService::NAME); return !is_null($syncResService->findByPath($this->getThemePath() . $p_templateName)); }