title: Proper way of creating JAXB objects
body: <p>I noticed <code>ObjectFactory</code> class generated by jaxb compiler xjc. I read something about the purpose of it.</p>
  
  <p>I am wondering what is a proper way to create jaxb objects as for my purposes I don't need this class at all.  Should I always use the <code>ObjectFactory</code> even for trivial cases or can I construct the objects via normal constructor (what definitely works ok)?</p>
  
  <p>Edit: added example:</p>
  
  <p>I need to create instance of <code>IpAddress</code></p>
  
  <p>This is factory method:</p>
  
  <pre><code>  public IpAddress createIpAddress() {
          return new IpAddress();
      }
  </code></pre>
  
  <p>Is it better <code>IpAddress ia = new IpAddress()</code></p>
  
  <p>or</p>
  
  <pre><code>IpAddress ia = objectFactory.createIpdAddress()
  </code></pre>