public static byte[] serialize(Object obj) {
    return serialize(obj, null);
  }
Serialize an object into a <code>byte[]</code>

@throws IllegalArgumentException If <code>obj</code> should not be serialized
geode-core/src/main/java/org/apache/geode/internal/cache/EntryEventImpl.java