title: Copy POJO content from one bean to another
body: <p>I have few Pojos in different packages, each POJO contains set of the another pojo from the same package. I need to copy all items with the same name from Package B Pojos to objects in Package A. </p>
  
  <p>Eaxmple:</p>
  
  <pre><code>package com.vanilla.packageA;
  
  public class Student{
  
      private String firstName;
      private String lastName;
      private Set&lt;Course&gt; course;
  
      //getters and setters ommited
  
  }   
  </code></pre>
  
  <hr>
  
  <pre><code>package com.vanilla.packageA;
  
      public class Course{
      private String courseName;
      private String courseDescription;
  
      //seters and getters
  }
  </code></pre>
  
  <hr>
  
  <pre><code>package com.vanilla.packageB;
  
  public class Student{
  
      private String firstName;
      private String lastName;
      private Address address;
      private Set&lt;Course&gt; course;
      Private Date birtday;
  
      //getters and setters ommited
  
  }   
  </code></pre>
  
  <hr>
  
  <pre><code>package com.vanilla.packageB;
  
  public class Course{
      private String courseName;
      private String courseDescription;
      private &lt;Lecturer&gt; lecturer;
      private Integer hours;
  
      //seters and getters
  } 
  </code></pre>
  
  <p>I want to copy recursively all items from <code>PackageB</code> classes to <code>packageA</code> classes which exists in <code>PaCkageB</code> and shares the same name.</p>
  
  <p>Updates: </p>
  
  <p>Guys, I understand that that this is stupid question, but I need to maintain this code, now the code is written in the way that they have to call 50 getters and setter, or calling constructor with 50 parameters. 
  Unfortunately,  I can't use the same object and I need to copy it, but I must find more "elegant" way to copy tese beans.</p>