Procedure
You can represent Atom documents using JAXB annotated
objects because the Atom format is based on XML. Therefore, one way
to implement a resource method that consumes and produces Atom feeds
and Atom entries is to return a JAXB annotated object that uses the
Atom model. The JAX-RS library provides an Atom model based on JAXB.