A better approach along these lines might be to pass a "page context" object to the application.I prefer something along these lines, and would like to suggest the use of aannotation.
Interesting, though I'm having trouble visualizing how annotations might be used here. Do you have any thoughts on what such an annotation might look like?
