protected override void InternalProcessRecord()
        {
            var farm = SPFarm.Local;

            SyncConfiguration sc = farm.GetChild <SyncConfiguration>(SyncConfiguration.StorageName);

            if (sc == null)
            {
                sc = new SyncConfiguration(SyncConfiguration.StorageName, farm);
                sc.AddDefaultPropertyMappings();
                sc.AddDefaultOUs();
                sc.Update();
            }

            base.WriteObject(sc);
        }