new API to get a mapper for a given domain type