         }
     }
 
-    func treeNodeTemplate() -> ObjectAdaptor.Template {
+    static func treeNodeTemplate() -> ObjectAdaptor.Template {
         var template = ObjectAdaptor.Template()
         template.childrenGetter = {
             (element:AnyObject) -> [AnyObject] in

        didSet {
            svgView?.svgDocument = svgDocument
            if let svgDocument = svgDocument {
                root = [ObjectAdaptor(object:svgDocument, template:treeNodeTemplate())]
            }
            summaryViewController.svgDocument = svgDocument
        }

                case is SVGPath:
                    return "Path"
                default:
                    preconditionFailure()
            }
        }
        return template
