code: public static UIComponentTag getParentUIComponentTag(PageContext context) {
  
          UIComponentClassicTagBase result =
               getParentUIComponentClassicTagBase(context);
          if (!(result instanceof UIComponentTag)) {
              return new UIComponentTagAdapter(result);
          }
          return ((UIComponentTag) result);
  
      }
docs: <p>Locate and return the nearest enclosing {@link UIComponentTag}
  if any; otherwise, return <code>null</code>.</p>
  
  @param context <code>PageContext</code> for the current page