I need to find the caller of a method. Is it possible using stacktrace or reflection?
Oneliner:
Thread.currentThread().getStackTrace()[2].getMethodName()
Note that you might need to replace the 2 with 1.