title: API Gateway is not calling global mediaton extension - WSO2 AM 2.2.0
body: <p>I am following given <a href="https://docs.wso2.com/display/AM220/Adding+Mediation+Extensions" rel="nofollow noreferrer">documentation</a> to create a global synapse mediator, but it seems that my mediator is not used. When I upload the same mediator XML to the API on publisher, works properly.</p>
  
  <p>My XML meditor:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;sequence xmlns="http://ws.apache.org/ns/synapse" name="WSO2AM--Ext--In"&gt;
      &lt;property name="X-Client-Remote-Addr" expression="get-property('axis2', 'REMOTE_ADDR')" scope="transport"/&gt;
      &lt;property name="X-Client-Forwarded-For" expression="$trp:X-Forwarded-For" scope="transport"/&gt;
  &lt;/sequence&gt;
  </code></pre>
  
  <p>The API handlers sequence is the default, using <em>org.wso2.carbon.apimgt.gateway.handlers.ext.APIManagerExtensionHandler</em> like this <a href="https://docs.wso2.com/display/AM220/Writing+Custom+Handlers" rel="nofollow noreferrer">documentation</a>. This handler should be the responsible to apply global mediators.</p>
  
  <p>Is there some known bug with a workaround or, maybe, did I some mistake?</p>