#resolveTemplate() implemented