title: How to break into middle of Flow in MULE and return the message to client..?
body: <p>I have a Flow in MULE like below : </p>
  
  <pre><code>&lt;flow name="MetaService"&gt;
      &lt;http:inbound-endpoint address="http://localhost:8000/jcore/meta"  
  transformer-refs="HttpParams" responseTransformer-refs="JavaObjectToJson"&gt;
      &lt;/http:inbound-endpoint&gt;
  
      &lt;component class = "com.java.Meta"&gt;
      &lt;component class = "com.java.Meta2"
  
  &lt;/flow&gt;
  </code></pre>
  
  <p>This flow first enters my first component class : "<strong><em>com.java.Meta</em></strong>" . And whatever i "<strong>return</strong>" from this java class becomes the input for my second component class : "<strong><em>com.java.Meta2</em></strong>".</p>
  
  <hr>
  
  <p>Now what i want to do is like : </p>
  
  <p>I want to check for something in "<strong>payload</strong>" in class "<strong>Meta</strong>" and if it does not exist, then i want to return a <em>Java HashMap</em> to client (in form of JSON) containing the <strong><em>error</em></strong> key. </p>
  
  <p>And if it exist, then i want to return the same "<strong>payload</strong>" to second component class "<strong>Meta2</strong>".</p>
  
  <p>How can i achieve this..??</p>