AEMManager.Util.RegistryMigration.MigrateInstance C# (CSharp) Method

MigrateInstance() private static method

private static MigrateInstance ( RegistryKey source, RegistryKey target ) : void
source Microsoft.Win32.RegistryKey
target Microsoft.Win32.RegistryKey
return void
        private static void MigrateInstance(RegistryKey source, RegistryKey target)
        {
            MigrateStringValues(source, target,
            "AdditionalRunmodes",
            "BrowserExecutable",
            "ContextPath",
            "CustomIconPath",
            "CustomJVMParam1",
            "CustomJVMParam2",
            "CustomJVMParam3",
            "Hostname",
            "IconSet",
            "JavaExecutable",
            "Name",
            "Password",
            "Path",
            "Runmode",
            "Username");
              MigrateIntValues(source, target,
            "CustomJVMParam1Active",
            "CustomJVMParam2Active",
            "CustomJVMParam3Active",
            "DebugPort",
            "HeapMaxSizeMb",
            "HeapMinSizeMb",
            "JConsole",
            "JConsolePort",
            "JProfiler",
            "JProfilerPort",
            "JVMDebug",
            "MaxPermSizeMb",
            "OpenBrowser",
            "Port",
            "RemoteProcess",
            "RunmodeSampleContent",
            "ShowInstanceWindow",
            "ShowInTaskbar");

              string cqInstanceType = (string)source.GetValue("CqInstanceType", "");
              if (cqInstanceType == "CQ54") {
            target.SetValue("AemInstanceType", AemInstanceType.AEM54.ToString());
              }
              else if (cqInstanceType == "CQ55") {
            target.SetValue("AemInstanceType", AemInstanceType.AEM55.ToString());
              }
        }