xpath based for each mediator implementation

Why these methods shown as removed can you reformat this to only shown the actually edited parts.