Protected TreeTemplate methods.