What pattern should I follow to properly deal with the risk of software shutting off right in the middle of the serialization of some data in Java?
Let\'s say I have some