public function getBaseTemplate($target, $templateId){
        $base = $this->getResolvedBase($target);
        if(is_array($base) && isset($base['templates']) && isset($base['templates'][$templateId])){
            return $base['templates'][$templateId];
        }
        return null;
    }