Implement a resource method using JAXB objects for XML
content.
About this task
You can use JAXB objects as request entity parameters
and response entities with JAX-RS applications. Instead of transforming
XML to and from native Java™ types,
you can take advantage of using JAXB objects.
Supporting information (generally applicable)