public override void ExecuteCmdlet()
        {
            try
            {
                if (string.IsNullOrEmpty(LegacyConfigId))
                {
                    var migrationPlanList = StorSimpleClient.GetAllMigrationPlan();
                    if (migrationPlanList.MigrationPlans.Count == 0)
                    {
                        WriteWarning(Resources.MigrationPlanNoConfigs);
                    }
                    else
                    {
                        foreach (var migrationPlan in migrationPlanList.MigrationPlans)
                        {
                            var migrationPlanConfig = new MigrationConfig(migrationPlan);
                            WriteObject(migrationPlanConfig);
                        }
                    }
                }
                else
                {
                    StorSimpleClient.UpdateMigrationPlanSync(LegacyConfigId);
                    var migrationPlanList = StorSimpleClient.GetMigrationPlan(LegacyConfigId);
                    if (0 >= migrationPlanList.MigrationPlans.Count)
                    {
                        throw new ArgumentException(Resources.MigrationPlanNotFound);
                    }
                    else
                    {
                        MigrationPlan migrationPlan = migrationPlanList.MigrationPlans.First();
                        if (null != LegacyContainerNames)
                        {
                            var legacyContainerNamesList = LegacyContainerNames.ToList();
                            migrationPlan.MigrationPlanInfo =
                                migrationPlan.MigrationPlanInfo.ToList().FindAll(
                                    plan =>
                                    legacyContainerNamesList.Contains(plan.DataContainerName,
                                                                      StringComparer.InvariantCultureIgnoreCase));
                        }

                        var migrationPlanMsg = new MigrationPlanMsg(migrationPlan);
                        WriteObject(migrationPlanMsg);
                    }
                }
            }
            catch (Exception except)
            {
                this.HandleException(except);
            }
        }