title: How to set messageType property conditionally based on request header in WSO2 ESB?
body: <p>Is there a way to dynamically set the messageType property based on request header? </p>
  
  <p>I can read the request header (transport,accept) in the insequence but how can I use its value to conditionally set messageType property depending on the accept value? Is there a way to achieve this requirement?</p>
  
  <p>I am running ESB version 4.7.0.</p>