public async Task RenameAsync(ITableCategory category, TaskContext context)
        {
            var authentication = context.Authentication;
            var categoryName   = RandomUtility.NextIdentifier();

            if (context.AllowException == false)
            {
                if (await VerifyAsync() == false)
                {
                    return;
                }
            }
            await category.RenameAsync(authentication, categoryName);

            async Task <bool> VerifyAsync()
            {
                if ((await category.GetAllRelationTablesAsync(item => item.TableState != TableState.None)).Any() == true)
                {
                    return(false);
                }
                return(await category.Dispatcher.InvokeAsync(() =>
                {
                    if (category.Parent == null)
                    {
                        return false;
                    }
                    if (category.Name == categoryName)
                    {
                        return false;
                    }
                    return true;
                }));
            }
        }