[MILYN-648] Fixed: Problem with multiple resource-configs for one xml element 

Only cleanup handlers targeted at the current element.