Allowing customization of type resolution based on request