instead ofImplement only writeReplace method to replace the instance with a serial proxy and not readResolve.
?Implement only writeReplace method to replace the instance with a serial proxy and not readReplace.
There is no method readReplace involved in deserialization.