protected override void UpdateProfileItem(ProfileTypeDefinitionModel profileItem, IDALContext dalContext)
 {
     if (_model.SuperType != null)
     {
         var superTypeProfile = _model.SuperType.ImportProfileItem(dalContext);
         profileItem.Parent = dalContext.MapToModelProfileSimple(superTypeProfile);
     }
     profileItem.IsAbstract = _model.IsAbstract;
     base.UpdateProfileItem(profileItem, dalContext);
 }
        protected override void UpdateProfileItem(ProfileTypeDefinitionModel profileItem, IDALContext dalContext)
        {
            base.UpdateProfileItem(profileItem, dalContext);

            if (_model.TypeDefinition != null)
            {
                var objectType = _model.TypeDefinition?.ImportProfileItem(dalContext);
                if (objectType == null)
                {
                    throw new Exception($"Undefined object type {_model.TypeDefinition.DisplayName?.FirstOrDefault()?.Text} {_model.TypeDefinition.NodeId}");
                }
                profileItem.Parent = dalContext.MapToModelProfileSimple(objectType);
            }
        }