Resource#applyMap now has sourceIdx parameter.