MULE-7108: Need to decouple Pipeline interface from MessageProcessorPath generation

fix instance check in order to have async notifications work with batch
Merge pull request #182 from mulesoft/MULE-7108

MULE-7108: Need to decouple Pipeline interface from MessageProcessorPath generation