code: public static int getThreadID() {
  		 StackInfo result = MDC.get();
  		 return result == null ? HpelHelper.getIntThreadId() : result.threadId;
  	 }
docs: Returns thread id from the current stack. It is called by log handler
  to get thread id which is either passed for the record in a request or
  obtained from the thread directly.
  
  @return thread id from the stack.