title: Fast (effective & efficient) method to copy Java bean properties
body: <p>I have this bean that has up to 200 properties. I have to copy to another bean with a slightly different structure but with as many as 200 properties.</p>
  
  <p>What is the most efficient and effective way to copy these properties. By default I am doing:</p>
  
  <pre><code>bean1.setProperty1(bean2.getProperty1Equivalent());
  ....
  bean1.setProperty200(bean2.getProperty200Equivalent());
  </code></pre>
  
  <p>Some times, this takes 0 CPU time to complete, but when transaction increases it could take anything between 500milliseconds to 1000millseconds. I am hoping there is a smarter/faster way to copy these properties.</p>
  
  <p>Is there a better way to do this, without having to modify both beans?</p>