Add support for injecting of a mapper.