well, I've hacked it for GF2.
Its a dirty hack. And is likely to fail if multiple WArs try to use my code unless GF2 assures that the y re loaded by separate class loaders as the hack is a static Map to replace the ServletContext attribute functionality.
[Message sent by forum member 'jeffpk' (jeffpk)]
http://forums.java.net/jive/thread.jspa?messageID=336485