MULE-7731 JMS transport should reuse javax.jms.Session, javax.jms.Messag...

...eProducer instances by default
This when() block is duplicate below. Refactor it