private void buildTemplates (Node node)
    {
        String key = getAttrOptional(node, "key");
        key = key.replaceAll("\\s", empty);
        if (key.equals(empty))
            return;
        NodeList nodes = node.getChildNodes();
        int len = nodes.getLength();
        String cdada = empty;
        for (int i = 0; i < len; i++)
        {
            Node n = nodes.item(i);
            if (Node.CDATA_SECTION_NODE != n.getNodeType())
                continue;
            cdada = n.getTextContent();
        }
        String[] keys = key.split("\\|");
        for (String k : keys)
        {
            if (k.equals(empty))
                continue;
            snippetAdd(k, cdada);
        }
    }