code: public static UIComponent getCurrentComponent(FacesContext context) {
          Map<Object, Object> contextAttributes = context.getAttributes();
          ArrayDeque<UIComponent> componentELStack = _getComponentELStack(_CURRENT_COMPONENT_STACK_KEY,
                                                                 contextAttributes);
  
        return componentELStack.peek();
      }
docs: <p class="changed_added_2_0">Return the <code>UIComponent</code>
  instance that is currently processing.  This is equivalent to
  evaluating the EL expression "<code>#{component}</code>" and
  doing a <code>getValue</code> operation on the resultant
  <code>ValueExpression</code>.</p>
  
  <p class="changed_added_2_0">This method must return
  <code>null</code> if there is no currently processing
  <code>UIComponent</code></p>
  
  @param context {@link FacesContext} for the request we are processing
  
  @throws NullPointerException if <code>context</code>
  is <code>null</code>
  
  @since 2.0