// Generates content of webExtensionPart1.
        private static void GenerateWebExtensionPart1Content(WebExtensionPart webExtensionPart1, string snippetID)
        {
            We.WebExtension webExtension1 = new We.WebExtension()
            {
                Id = "{635BF0CD-42CC-4174-B8D2-6D375C9A759E}"
            };
            webExtension1.AddNamespaceDeclaration("we", "http://schemas.microsoft.com/office/webextensions/webextension/2010/11");
            We.WebExtensionStoreReference webExtensionStoreReference1 = new We.WebExtensionStoreReference()
            {
                Id = "wa104380862", Version = "1.1.0.0", Store = "en-US", StoreType = "OMEX"
            };
            We.WebExtensionReferenceList webExtensionReferenceList1 = new We.WebExtensionReferenceList();

            We.WebExtensionPropertyBag webExtensionPropertyBag1 = new We.WebExtensionPropertyBag();

            // Add the property that makes the taskpane visible.
            We.WebExtensionProperty webExtensionProperty1 = new We.WebExtensionProperty()
            {
                Name = "Office.AutoShowTaskpaneWithDocument", Value = "true"
            };
            webExtensionPropertyBag1.Append(webExtensionProperty1);

            // CUSTOM MODIFICATION BEGIN
            // Add the property that specifies the snippet to import.
            string snippetToImportValue = string.Format("{{\"type\":\"gist\",\"id\":\"{0}\"}}", snippetID);

            We.WebExtensionProperty webExtensionProperty2 = new We.WebExtensionProperty()
            {
                Name = "SnippetToImport", Value = snippetToImportValue
            };
            webExtensionPropertyBag1.Append(webExtensionProperty2);
            // CUSTOM MODIFICATION END

            We.WebExtensionBindingList webExtensionBindingList1 = new We.WebExtensionBindingList();

            We.Snapshot snapshot1 = new We.Snapshot();
            snapshot1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");

            webExtension1.Append(webExtensionStoreReference1);
            webExtension1.Append(webExtensionReferenceList1);
            webExtension1.Append(webExtensionPropertyBag1);
            webExtension1.Append(webExtensionBindingList1);
            webExtension1.Append(snapshot1);

            webExtensionPart1.WebExtension = webExtension1;
        }
        // Generates content of webExtensionPart2.
        private void GenerateWebExtensionPart2Content(WebExtensionPart webExtensionPart2)
        {
            We.WebExtension webExtension2 = new We.WebExtension(){ Id = "{4C8E485B-015B-4A7A-8E64-00F01CCA9580}" };
            webExtension2.AddNamespaceDeclaration("we", "http://schemas.microsoft.com/office/webextensions/webextension/2010/11");
            We.WebExtensionStoreReference webExtensionStoreReference2 = new We.WebExtensionStoreReference(){ Id = "JArgil_M3_Taskpane_1", Version = "15.0", Store = "developer", StoreType = "Registry" };
            We.WebExtensionReferenceList webExtensionReferenceList2 = new We.WebExtensionReferenceList();
            We.WebExtensionPropertyBag webExtensionPropertyBag2 = new We.WebExtensionPropertyBag();
            We.WebExtensionBindingList webExtensionBindingList2 = new We.WebExtensionBindingList();

            We.Snapshot snapshot2 = new We.Snapshot();
            snapshot2.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");

            webExtension2.Append(webExtensionStoreReference2);
            webExtension2.Append(webExtensionReferenceList2);
            webExtension2.Append(webExtensionPropertyBag2);
            webExtension2.Append(webExtensionBindingList2);
            webExtension2.Append(snapshot2);

            webExtensionPart2.WebExtension = webExtension2;
        }
        // Generates content of webExtensionPart5.
        private void GenerateWebExtensionPart5Content(WebExtensionPart webExtensionPart5)
        {
            We.WebExtension webExtension5 = new We.WebExtension(){ Id = "{E60613D7-9E0F-492D-BBAD-04FAEFBE5A0B}" };
            webExtension5.AddNamespaceDeclaration("we", "http://schemas.microsoft.com/office/webextensions/webextension/2010/11");
            We.WebExtensionStoreReference webExtensionStoreReference5 = new We.WebExtensionStoreReference(){ Id = "JArgil_M3_InContent_1", Version = "15.0", Store = "developer", StoreType = "Registry" };
            We.WebExtensionReferenceList webExtensionReferenceList5 = new We.WebExtensionReferenceList();
            We.WebExtensionPropertyBag webExtensionPropertyBag5 = new We.WebExtensionPropertyBag();
            We.WebExtensionBindingList webExtensionBindingList5 = new We.WebExtensionBindingList();

            We.Snapshot snapshot5 = new We.Snapshot(){ Embed = "rId1" };
            snapshot5.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");

            webExtension5.Append(webExtensionStoreReference5);
            webExtension5.Append(webExtensionReferenceList5);
            webExtension5.Append(webExtensionPropertyBag5);
            webExtension5.Append(webExtensionBindingList5);
            webExtension5.Append(snapshot5);

            webExtensionPart5.WebExtension = webExtension5;
        }
        // Generates content of webExtensionPart1.
        private void GenerateWebExtensionPart1Content(WebExtensionPart webExtensionPart1)
        {
            We.WebExtension webExtension1 = new We.WebExtension(){ Id = "{FDBCC95A-4F5D-4EE2-B679-0C399AE7911A}" };
            webExtension1.AddNamespaceDeclaration("we", "http://schemas.microsoft.com/office/webextensions/webextension/2010/11");
            We.WebExtensionStoreReference webExtensionStoreReference1 = new We.WebExtensionStoreReference(){ Id = "JArgil_M3_Taskpane_ActiveX", Version = "15.0", Store = "developer", StoreType = "Registry" };
            We.WebExtensionReferenceList webExtensionReferenceList1 = new We.WebExtensionReferenceList();
            We.WebExtensionPropertyBag webExtensionPropertyBag1 = new We.WebExtensionPropertyBag();
            We.WebExtensionBindingList webExtensionBindingList1 = new We.WebExtensionBindingList();

            We.Snapshot snapshot1 = new We.Snapshot();
            snapshot1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");

            webExtension1.Append(webExtensionStoreReference1);
            webExtension1.Append(webExtensionReferenceList1);
            webExtension1.Append(webExtensionPropertyBag1);
            webExtension1.Append(webExtensionBindingList1);
            webExtension1.Append(snapshot1);

            webExtensionPart1.WebExtension = webExtension1;
        }
        // Generates content of webExtensionPart4.
        private void GenerateWebExtensionPart4Content(WebExtensionPart webExtensionPart4)
        {
            We.WebExtension webExtension4 = new We.WebExtension(){ Id = "{CA0F8276-83E3-4B12-8C92-C5B35FC35721}" };
            webExtension4.AddNamespaceDeclaration("we", "http://schemas.microsoft.com/office/webextensions/webextension/2010/11");
            We.WebExtensionStoreReference webExtensionStoreReference4 = new We.WebExtensionStoreReference(){ Id = "JArgil_M3_InContent_ActiveX", Version = "15.0", Store = "developer", StoreType = "Registry" };
            We.WebExtensionReferenceList webExtensionReferenceList4 = new We.WebExtensionReferenceList();
            We.WebExtensionPropertyBag webExtensionPropertyBag4 = new We.WebExtensionPropertyBag();
            We.WebExtensionBindingList webExtensionBindingList4 = new We.WebExtensionBindingList();

            We.Snapshot snapshot4 = new We.Snapshot(){ Embed = "rId1" };
            snapshot4.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");

            webExtension4.Append(webExtensionStoreReference4);
            webExtension4.Append(webExtensionReferenceList4);
            webExtension4.Append(webExtensionPropertyBag4);
            webExtension4.Append(webExtensionBindingList4);
            webExtension4.Append(snapshot4);

            webExtensionPart4.WebExtension = webExtension4;
        }
        // Generates content of webExtensionPart3.
        private void GenerateWebExtensionPart3Content(WebExtensionPart webExtensionPart3)
        {
            We.WebExtension webExtension3 = new We.WebExtension(){ Id = "{ACAC7A36-8FF8-4343-90BB-FD5DAAB89B97}" };
            webExtension3.AddNamespaceDeclaration("we", "http://schemas.microsoft.com/office/webextensions/webextension/2010/11");
            We.WebExtensionStoreReference webExtensionStoreReference3 = new We.WebExtensionStoreReference(){ Id = "JArgil_M3_InContent_1", Version = "15.0", Store = "developer", StoreType = "Registry" };
            We.WebExtensionReferenceList webExtensionReferenceList3 = new We.WebExtensionReferenceList();
            We.WebExtensionPropertyBag webExtensionPropertyBag3 = new We.WebExtensionPropertyBag();
            We.WebExtensionBindingList webExtensionBindingList3 = new We.WebExtensionBindingList();

            We.Snapshot snapshot3 = new We.Snapshot(){ Embed = "rId1" };
            snapshot3.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");

            webExtension3.Append(webExtensionStoreReference3);
            webExtension3.Append(webExtensionReferenceList3);
            webExtension3.Append(webExtensionPropertyBag3);
            webExtension3.Append(webExtensionBindingList3);
            webExtension3.Append(snapshot3);

            webExtensionPart3.WebExtension = webExtension3;
        }