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();
}