+1 to having a policy that can be configured via XML.
Do you have an example of what you are proposing by inferring its type?