title: No serializer found for class org.mule.module.jersey.MuleResponseWriter$1 while using APIKit
body: <p>When I use APIKit router with a Rest(jersey) component, I am getting a exception( as below), this exception does not occur when I use a flow-ref instead of the API Router ( Inserted flow snippet below). Any clues ?</p>
  
  <p>Message               : No serializer found for class org.mule.module.jersey.MuleResponseWriter$1 and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS) ) (org.codehaus.jackson.map.JsonMappingException)</p>
  
  <h2>Code                  : MULE_ERROR--2</h2>
  
  <p>Exception stack is:
  1. No serializer found for class org.mule.module.jersey.MuleResponseWriter$1 and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS) ) (org.codehaus.jackson.map.JsonMappingException)
    org.codehaus.jackson.map.ser.impl.UnknownSerializer:52 (null)
  2. No serializer found for class org.mule.module.jersey.MuleResponseWriter$1 and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS) ) (org.codehaus.jackson.map.JsonMappingException) (org.mule.api.transformer.TransformerException)
    org.mule.module.json.transformers.ObjectToJson:103 </p>
  
  <pre><code>&lt;flow name="main" doc:name="main"&gt;
      &lt;http:inbound-endpoint  doc:name="HTTP" exchange-pattern="request-response" host="localhost" port="9081"/&gt;
      &lt;logger level="INFO" doc:name="Logger"/&gt;
           &lt;apikit:router config-ref="apiConfig" doc:name="APIkit Router"/&gt;
      &lt;exception-strategy ref="apiKitGlobalExceptionMapping" doc:name="Reference Exception Strategy"/&gt;
  &lt;/flow&gt;
  &lt;flow name="wine-cellar-muleFlow1" doc:name="wine-cellar-muleFlow1"&gt;
      &lt;jersey:resources doc:name="REST"&gt;
          &lt;component class="WineResource"/&gt;
      &lt;/jersey:resources&gt;
      &lt;json:object-to-json-transformer doc:name="Object to JSON"/&gt;
  &lt;/flow&gt;
  </code></pre>