public boolean areObjectsEqual(Object o1, Object o2) {
    if (o1 == null) {
      return o2 == null;
    }
    try {
      return TypeUtils.compare(o1, o2, OQLLexerTokenTypes.TOK_EQ).equals(Boolean.TRUE);
    } catch (TypeMismatchException e) {
      return o1.equals(o2);
    }
  }
@param key assumed to not be null, rather needs to be NULL token
@param newIndexSlot if inplace modification occurs with out having a reversemap we end up
       scanning the entire index. We want to remove the region entry from the index slot but
       not the newly added (correct) slot. Rather only the "old/wrong" slot
@return true if object was removed, false otherwise
geode-core/src/main/java/org/apache/geode/cache/query/internal/index/HashIndexSet.java