"JAXB generates interfaces representing the content (domain) objects. This means when it is time to create the object tree, you can't just instantiate these objects. You have to use the ObjectFactory created by JAXB to create each new object. This can be a bit tedious compared to creating other objects with a typical new. "
Recently Icame across an article on JAXB. The author makes the above observation. I do not understand why it is tedious to use a factory than a new.
For me both ways it is one single statement by itself.