protected virtual void DeleteViewVariant()         //This method does almost the same work as NewViewVariant, but in reverse order.
        {
            VariantsInfo variantsInfo = GetVariantsInfo(); //You should not be able to remove the root view variant.

            if (variantsInfo != null && variantsInfo.CurrentVariantId != GetRootViewId())
            {
                UpdateCurrentViewVariant(string.Empty);
                rootModelViewVariants[variantsInfo.CurrentVariantId].Remove();
                modelViews[variantsInfo.CurrentVariantId].Remove();
                if (changeVariantController != null)
                {
                    changeVariantController.CurrentFrameViewVariantsManager.RefreshVariants();
                }
                UpdateUserViewVariantsAction();
            }
            if (rootModelViewVariants.Count == 1)
            {
                rootModelViewVariants.ClearNodes();
            }
        }