final ActorTaskContext context1 = ActorTaskContext.currentFor(thread); final StackTraceElement[] stackTrace = thread.getStackTrace(); final ActorTaskContext context2 = ActorTaskContext.currentFor(thread); Object key = null; if (context1 != null && context1 == context2 && context1.getActor() != null)