public MessageProducer(IMessageTemplate templ, IEnumerable <KeyValuePair <string, string> > wildcards, INodeMarkUpSpecification specs) { try { headerTempl = TextNode.SplitTextToNodes(templ.MsgHeader + " ", specs); bodyTempl = TextNode.SplitTextToNodes(templ.MsgBody + " ", specs); } catch (TextParseException e) { errorContainer.parseExceptions.Add(e); throw new MessageProducerException("Text parse Exception: " + e.Message); } this.wildcards = wildcards; }