Habanero.BO.ObjectTreeXmlReader.ConfigureNewBo C# (CSharp) Method

ConfigureNewBo() private static method

private static ConfigureNewBo ( IBusinessObject bo ) : void
bo IBusinessObject
return void
        private static void ConfigureNewBo(IBusinessObject bo)
        {
            BusinessObjectLoaderBase.CallAfterLoad(bo);
            try
            {
                BusinessObjectManager.Instance.Add(bo);
            }
            catch (HabaneroDeveloperException ex)
            {
                // object already exists - this is a possible circumstance so we can let it go
                if (!ex.DeveloperMessage.Contains("Two copies of the business object"))
                    throw;
            }
            bo.Props.BackupPropertyValues();
        }