title: WSO2 ESB property incorrect scope
body: <p>I have next sequence:</p>
  
  <pre><code>&lt;payloadFactory&gt;
      &lt;format&gt;
          &lt;cb:accounts/&gt;
      &lt;/format&gt;
      &lt;args/&gt;
  &lt;/payloadFactory&gt;
  &lt;property name="accounts" type="OM" expression="//cb:accounts" /&gt;
  ...
  &lt;iterate id="accountIterator" continueParent="true" sequential="true" expression="//cb:accounts/cb:accountId"&gt;
      &lt;target&gt;
          &lt;sequence&gt;
              ...
              &lt;property name="accounts" type="OM" expression="//*" /&gt;
          &lt;/sequence&gt;
      &lt;/target&gt;
  &lt;/iterate&gt; 
  &lt;aggregate id="accountIterator"&gt;
      &lt;onComplete expression="$body/child::*[fn:position()=1]"&gt;
          &lt;log level="custom" /&gt;
      &lt;/onComplete&gt;
  &lt;/aggregate&gt;
  &lt;enrich&gt;
      &lt;source type="custom" xpath="get-property('accounts')"/&gt;
      &lt;target type="body" /&gt;
  &lt;/enrich&gt;
  </code></pre>
  
  <p>Why property named "accounts" which was set inside "iterate" mediator has null value outside "iterate" mediator ?</p>
  
  <p>Thanks</p>