Possible Duplicate:
In Java, how do i find the caller of a method using stacktrace or reflection?
I'm just curious. I was requesting that feature sometimes, but then I solved it with more code. (the calling class said its name while calling the method)