How can I find out through reflection what is the string name of the method?
For example given:
class Car{ public void getFoo(){ } }
Look into this thread:
Getting the name of the currently executing method
It offers some more solutions - for example:
String name = new Object(){}.getClass().getEnclosingMethod().getName();