Copy complex object hierarchy in Java
<p>I have a complex object hierarchy that has a couple of extends. </p>

<blockquote>
  <p>class One {
      String name;
      Color color;
      List clothes; }</p>
  
  <p>class Two extends One {
      Test test; }</p>
  
  <p>class Foo {    One One;    Two two; }</p>
</blockquote>

<p>I want to copy all the attributes of a object of class One into a new object of class say another.
How to do this ? Is there any library available ?</p>
