/* Find the matched FormSet context in the backup maintain list based on HiiHandle. */
FORM_BROWSER_FORMSET* GetFormSetFromHiiHandle(EFI_HII_HANDLE Handle)
/* Find the matched FormSet context in the backup maintain list based on HiiHandle. */
FORM_BROWSER_FORMSET* GetFormSetFromHiiHandle(EFI_HII_HANDLE Handle)
{
  LIST_ENTRY            *Link;
  FORM_BROWSER_FORMSET  *FormSet;
  Link = GetFirstNode (&gBrowserFormSetList);
  while (!IsNull (&gBrowserFormSetList, Link)) {
    FormSet = FORM_BROWSER_FORMSET_FROM_LINK (Link);
    Link    = GetNextNode (&gBrowserFormSetList, Link);
    if (!ValidateFormSet (FormSet)) {
      continue;
    }
    if (FormSet->HiiHandle == Handle) {
      return FormSet;
    }
  }
  return NULL;
}