RuleUtils.mapWithSrc to iterate over the source elements