title: BeanUtils Copy Properties: Registering ConvertUtils
body: <p>I have web application written in Java. Im using <code>BeanUtils.copyProperties</code> method. If a <code>date</code> field is null, it throws an error. I solved it by using <code>ConvertUtils.register</code> method.</p>
  
  <pre><code>ConvertUtils.register(new DateConverter(null), Date.class);
  </code></pre>
  
  <p>It works now, but what is the correct way of using <code>ConvertUtils.register</code>. Where should it be placed?</p>