* @return the component or null if no component was found
*/
public UIComponent findComponent(FacesContext fc, String componentId, UIComponent nearComponent)
{
if (StringUtils.isEmpty(componentId))
throw new InvalidArgumentException("componentId", componentId);
// Begin search near given component (if any)
UIComponent component = null;
if (nearComponent != null)
{ // Search below the nearest naming container
component = nearComponent.findComponent(componentId);