JAXB adapter classes and other utilities