Sorry, on vacation. Give me till next week
Sorry, took me a while to get to it. I'll let you know by tomorrow. There are many ways of solving it, but I am now thinking about making it a part of the framework, so its a bit tricky. I'll let you know. I have a working prototype so i'll share it with you one way or the other.
Hey, sorry about the delay, but it was a bit trickier than I thought. Anyway, take a look at this: https://jira.springsource.org/browse/INT-2108. Currently the code is on my branch. You are more then welcome to checkout and build or you can just copy and paste the code itself in your classes.
It would be interesting to get your feedback.