code: protected void initTemplates(Element root, CmsXmlContentDefinition contentDefinition) {
  
          String strEnabledByDefault = root.attributeValue(ATTR_ENABLED_BY_DEFAULT);
          m_allowedTemplates.setDefaultMembership(safeParseBoolean(strEnabledByDefault, true));
          List<Node> elements = root.selectNodes(APPINFO_TEMPLATE);
          for (Node elem : elements) {
              boolean enabled = safeParseBoolean(((Element)elem).attributeValue(ATTR_ENABLED), true);
              String templateName = elem.getText().trim();
              m_allowedTemplates.setContains(templateName, enabled);
          }
          m_allowedTemplates.freeze();
      }
docs: Initializes the forbidden template contexts.<p>
  
  @param root the root XML element
  @param contentDefinition the content definition