About this task
Step 4 towards the goal:
Using custom entity formats
Procedure
If your JAX-RS web application requires support for
additional Java types or media types that are not supported by the
JAX-RS APIs, you can add a custom entity provider to the application.