title: camel: Modify output before routing
body: <p>In camel router I have below routing.</p>
  
  <pre><code>from("jetty:http://localhost:9092?matchOnUriPrefix=true").
      to("http://server:9093/service1?bridgeEndpoint=true&amp;throwExceptionOnFailure=false")
      .to("http://server:9094/service2?bridgeEndpoint=true&amp;throwExceptionOnFailure=false")
      .to("log:output")
  </code></pre>
  
  <p>The above routing works fine.</p>
  
  <p>But my requirement is to modify the output of service1 before sending to service2. Like if I am getting 
      <code>&lt;x&gt;abc&lt;/x&gt;</code></p>
  
  <p>I have to transform it to </p>
  
  <pre><code>&lt;y&gt;&lt;x&gt;abc&lt;/x&gt;&lt;/y&gt;
  </code></pre>
  
  <p>I tried using processor but I get the exchange.getOut() for service2 as null, while actually its returning the xml.</p>
  
  <p>Can someone please help me if this is possible? Let me know if the question is not clear.</p>