I throw the exception in the ReaderInterceptor, but
readEntity (InboundMessageContext) prints the stack trace of the IOException and returns the original entity.
Java has no way to get know the Exception occurred, i.e. there is no programatic way to get know the Exception occurred in the interceptor. Also, the throwing of IOException in the interceptor has no meaning this way. Better way to do this is the way it is done in bufferEntity, where IOException is encapsulated in MessageProcessingException.