How to get a caller class of a method
<p>How do I know which class called a method?</p>

<pre><code>class A {
   B b = new B();

   public void methodA() {
    Class callerClass = b.getCallerCalss(); // it should be 'A' class
   } 
}

class B {
 public Class getCallerCalss() {
   //... ???
   return clazz;
 }
}
</code></pre>
