Serialization vs Externalization in Java