Use a MapperRegistry object, not the class