I did a google search for function that would use reflection to dump all the data members of all the constituents and ancestor members of an object. I found one but it did not work very well.
Perl has a great data dumper that will dump arbitrary data structures to a stream. Is there a good one for java objects? Perhaps someone can recommend one?