Added the equivalent of readResolve() mechanism

..., which lets an object designate its replacement.