/// <summary>
        /// Initializes a new instance of the <see cref="UPRecordCopy"/> class.
        /// </summary>
        /// <param name="templateFilterName">Name of the template filter.</param>
        /// <param name="theDelegate">The delegate.</param>
        /// <exception cref="System.Exception">Template Filter is null</exception>
        public UPRecordCopy(string templateFilterName, UPRecordCopyDelegate theDelegate)
        {
            this.configStore    = ConfigurationUnitStore.DefaultStore;
            this.TemplateFilter = this.configStore.FilterByName(templateFilterName);
            if (this.TemplateFilter == null)
            {
                throw new Exception("Template Filter is null");
            }

            this.RequestOption = UPRequestOption.Offline;
            this.TheDelegate   = theDelegate;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="UPRecordCopy"/> class.
 /// </summary>
 /// <param name="viewReference">The view reference.</param>
 /// <param name="theDelegate">The delegate.</param>
 public UPRecordCopy(ViewReference viewReference, UPRecordCopyDelegate theDelegate)
     : this(viewReference.ContextValueForKey("TemplateFilter"), theDelegate)
 {
 }