Make InstrumentedResourceMethodDispatchAdapter configurable via XML.

Closes #359.