// Determining the calling class.
// ca[0] is the anonymous security manager
// ca[1] is this class
// ca[2] is the calling class
Class[] ca = new SecurityManager()
   {
   // convert from protected to public to make the method accessible.
   public Class[] getClassContext()
      {
      return super.getClassContext();
      }
   }.getClassContext();