refactor Jaxb util