rest-provider Study the providers cycle It is an example how the Interceptors and MessageBody are called. The completle explanation about that you can see in my post: Rest - Providers and Interceptors