public static void handleInterruptedException() {
Thread.currentThread().interrupt();
}
public static String getCallerClass() {
StackTraceElement[] stacktrace = Thread.currentThread().getStackTrace();
<BUG>if (stacktrace.length >= 3) {
</BUG>
StackTraceElement element = stacktrace[3];
return element.getClassName();
} else {

public static void handleInterruptedException() {
Thread.currentThread().interrupt();
}
public static String getCallerClass() {
StackTraceElement[] stacktrace = Thread.currentThread().getStackTrace();
if (stacktrace.length >= 4) {
StackTraceElement element = stacktrace[3];
return element.getClassName();
} else {
