Diamond operator\!
Move null check for consistency.
Add namespace qualifier to serialized JAXB XML.
Use StreamSource instead of XMLInputFactory/XMLEventReader. Code is simpler and there should
be no thread safety issues.