...OutputStream.replaceObject(Object ... - Tutorials Point
This method should return the object to be substituted or the originalobject.Null can be returned as the object to be substituted, but may cause NullReferenceException in classesthat contain references to the o