change IdMapper implementation to take ResourceIterable instead of Iterable