forward calling object to attribute controller

as mentioned here, sometimes it's useful to know the calling object in an attribute controller.
I'd like to be able to do something with a collection object if the attribute is used there.

more details can be found here http://www.concrete5.org/community/forums/customizing_c5/get-page-id-from-attribute-controller/