Clean up JavaObjectSerialization