code: public static String getMainClassName() {
  		StackTraceElement trace[] = Thread.currentThread().getStackTrace();
  		if (trace.length > 0) {
  			return trace[trace.length - 1].getClassName();
  		}
  		return "Unknown";
  	}
docs: Gets the main class name.
  
  @return the main class name