/// <summary>
        /// Populates a TAL model from the state of the current instance.
        /// </summary>
        /// <param name="model">Model.</param>
        protected virtual void PopulateTalModel(IModel model)
        {
            if(model == null)
              {
            throw new ArgumentNullException(nameof(model));
              }

              foreach(string key in this.TalLocalDefinitions.Keys)
              {
            model.AddLocal(key, this.TalLocalDefinitions[key]);
              }
              foreach(string key in this.TalGlobalDefinitions.Keys)
              {
            model.AddGlobal(key, this.TalGlobalDefinitions[key]);
              }
        }