Set templatePath as protected property.