protected override void ProcessRecord()
        {
            if (!base.ShouldProcess("Import"))
            {
                return;
            }

            var ctx = base.Context;

            Validate();
            try
            {
                WriteVerbose(string.Format("Start Time: {0}", DateTime.Now.ToString()));

                ImportTermsHelper import = new ImportTermsHelper(this, ctx, _xml);

                switch (ParameterSetName)
                {
                case "Tenant":
                    import.Import();
                    break;

                case "TermStore":
                    import.Import(ParentTermStore.Read());
                    break;

                case "Group":
                    import.Import(ParentGroup.Read());
                    break;

                case "TermSet":
                    import.Import(ParentTermSet.Read());
                    break;

                case "Term":
                    import.Import(ParentTerm.Read());
                    break;
                }
            }
            finally
            {
                WriteVerbose(string.Format("Finish Time: {0}", DateTime.Now.ToString()));
            }
        }
        protected override void ProcessRecord()
        {
            if (!base.ShouldProcess("Import"))
                return;

            var ctx = base.Context;

            Validate();
            try
            {
                WriteVerbose(string.Format("Start Time: {0}", DateTime.Now.ToString()));

                ImportTermsHelper import = new ImportTermsHelper(this, ctx, _xml);

                switch (ParameterSetName)
                {
                    case "Tenant":
                        import.Import();
                        break;
                    case "TermStore":
                        import.Import(ParentTermStore.Read());
                        break;
                    case "Group":
                        import.Import(ParentGroup.Read());
                        break;
                    case "TermSet":
                        import.Import(ParentTermSet.Read());
                        break;
                    case "Term":
                        import.Import(ParentTerm.Read());
                        break;
                }
            }
            finally
            {
                WriteVerbose(string.Format("Finish Time: {0}", DateTime.Now.ToString()));
            }
        }