public void addObjPart(Object o, boolean zipValues) {
    if (o == null || o instanceof byte[]) {
      addRawPart((byte[]) o, false);
    } else if (o instanceof Boolean) {
      addRawPart((Boolean) o ? TRUE : FALSE, true);
    } else {
      serializeAndAddPart(o, zipValues);
    }
  }
Like addObjPart(Object) but also prefers to reference objects in the part instead of copying
them into a byte buffer.
geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/Message.java