xpath based for each mediator implementation