title: write java object into class file
body: <p>Is there any way to write a loaded Java object into a <code>.class</code> file or is there any other type of file that can easily be read to represent an instance's properties.</p>
  
  <p>For example, CGLIB will create an proxy bean which extends another, i really want to export this enhanced bean out to a <code>file</code> to see how it was enhanced.</p>