title: Jersey Update Entity Property MessageBodyWriter
body: <p>I want to create a Jersey provider (<a href="https://jersey.java.net/documentation/latest/message-body-workers.html#d0e6723" rel="nofollow">MessageBodyWriter</a>) that update a dto object property and continue the chain to Jersey-json default provider an return the json object. <strong>the problem</strong>  is that looks like default provider is not called so the output of my rest service become empty as soon as I register the new Provider.</p>
  
  <pre><code>@Provider
  public class TestProvider implements MessageBodyWriter&lt;MyDTO&gt;
  {
      @Override
      public long getSize(
          MyDTO arg0, Class&lt;?&gt; arg1, Type arg2, Annotation[] arg3, MediaType arg4)
      {
          return 0;
      }
  
      @Override
      public boolean isWriteable(Class&lt;?&gt; clazz, Type type, Annotation[] arg2, MediaType arg3)
      {
          return type == MyDTO.class;
      }
  
  
      @Override
      public void writeTo(
          MyDTO dto,
          Class&lt;?&gt; paramClass,
          Type paramType, Annotation[] paramArrayOfAnnotation,
          MediaType mt,
          MultivaluedMap&lt;String, Object&gt; paramMultivaluedMap,
          OutputStream entityStream) //NOPMD
      throws IOException, WebApplicationException
      {
          dto.setDescription("text Description");
          // CONTINUE THE DEFAULT SERIALIZATION PROCESS
      }
  }
  </code></pre>