code: public static ExecutorService getSecurityContextAwareExecutor(ExecutorService original) {
          SubjectAwareExecutorService subjectAwareExecutor = new SubjectAwareExecutorService(original);
          return ThreadLocalUtil.contextAwareExecutor(subjectAwareExecutor);
      }
docs: Wrap the given executor so that it takes authentication-information and context are inherited to tasks when they
  are submitted.