/// <summary>
        /// Initializes a new instance of the <see cref="GenericIssueReportFormatSettings"/> class.
        /// </summary>
        /// <param name="template">Template to use for generating the report.</param>
        protected GenericIssueReportFormatSettings(GenericIssueReportTemplate template)
        {
            using (var stream = this.GetType().Assembly.GetManifestResourceStream("Cake.Issues.Reporting.Generic.Templates." + template.GetTemplateResourceName()))
            {
                if (stream == null)
                {
                    throw new ApplicationException($"Could not load resource {template}");
                }

                using (var sr = new StreamReader(stream))
                {
                    this.Template = sr.ReadToEnd();
                }
            }
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="GenericIssueReportFormatSettings"/> class.
 /// </summary>
 /// <param name="template">Template to use for generating the report.</param>
 protected GenericIssueReportFormatSettings(GenericIssueReportTemplate template)
 {
     using (var stream = this.GetType().Assembly.GetManifestResourceStream("Cake.Issues.Reporting.Generic.Templates." + template.GetTemplateResourceName()))
     {
         using (var sr = new StreamReader(stream))
         {
             this.Template = sr.ReadToEnd();
         }
     }
 }