title: Mule Issue : More than one JAXBContext
body: <p>We are facing one issue in our Mule Adapter related to JAXB context, needed some opinion on the same
  We are using xpath to evaluate some expressions in the choice blocks in our adapter like below for instance,</p>
  
  <pre><code>&lt;choice doc:name="Choice"&gt;
  &lt;when expression="//env:abc/env:Body/ref:dataelement/ref:/ref:element" evaluator="xpath"&gt;
          ......
  &lt;/when&gt;
  </code></pre>
  
  <p>Now, this works perfectly fine in our application but the problem arises when one of other team uses this Adapter as a jar in their application.</p>
  
  <p>When they try to use this adapter, they are getting below error,</p>
  
  <pre><code>Message : More than one object of type class javax.xml.bind.JAXBContext registered but only one expected. 
  Type : org.mule.api.registry.RegistrationException 
  Code : MULE_ERROR--2 
  JavaDoc : http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/registry /RegistrationException.html.
  </code></pre>
  
  <p>After debugging with the help of loggers etc, we narrowed down to the choice block used above which is causing this particular issue. Also, googled a bit and found one of the posts pointing out the same issue.</p>
  
  <p>Also, to confirm we commented out the choice block having xpath expression and the flow went ahead but broke again where was xpath used in some other way.</p>
  
  <p><a href="https://www.mulesoft.org/jira/browse/MULE-5926" rel="nofollow">https://www.mulesoft.org/jira/browse/MULE-5926</a></p>
  
  <p>Can anyone please suggest any suitable workaround to resolve this issue?</p>