title: Copy properties of bean containing list with Beanutils
body: <p>I am trying to copy a bean object through <code>Beanutils.copyproperties(Employee,EmployeeDTO)</code>. It doesn't throw me any exception while copying, but when i try to retrive <code>EmployeeDTO.getPhoneNumber()</code> it shows me a ClassCastException, because the DTO object shows the phone number list of employee object.</p>
  
  <pre><code>public class Employee implements Serializable {
  
     private String name;
  
     private String salary;
  
     private List&lt;PhoneNumber&gt; phoneNumber = new ArrayList&lt;PhoneNumber&gt;(); 
  
     ....
  }
  
  public class EmployeeDTO implements Serializable {
  
     private String name;
  
     private String salary;
  
     private List&lt;PhoneNumber&gt; phoneNumber = new ArrayList&lt;PhoneNumber&gt;(); 
     ....
  }
  </code></pre>