Because RestHelpers are defined as pattern matches, I don't think there's really a good
way to do this without running into some halting problem issues, though we may be able
to do it heuristically.
I've been dealing with this problem while thinking about ways that we can increase RestHelper
performance (because we can't really build a “routing table” in terms of an optimized URI-based
trie-like dispatch table unless we know what URIs map where). Not sure what the best
solution will ultimately be.
Thanks,
Antonio