code: private static boolean idsAreEqual(String id, UIComponent cmp)
      {
          if (id.equals(cmp.getId()))
          {
              return true;
          }
  
          return false;
      }
docs: /*
  Return true if the specified component matches the provided id. This needs some quirks to handle components whose
  id value gets dynamically "tweaked", eg a UIData component whose id gets the current row index appended to it.