@Override
  public boolean equals(Object o) {
    if (o instanceof DataSerializer) {
      DataSerializer oDS = (DataSerializer) o;
      return oDS.getId() == getId() && getClass().equals(oDS.getClass());
    } else {
      return false;
    }
  }
Two <code>DataSerializer</code>s are consider to be equal if they have the same id and the same
class
geode-core/src/main/java/org/apache/geode/DataSerializer.java