Refactoring Jaxb example