code: public static Date getTransactionTime() {
          final Stack<Date> stack = threadLocal.get();
          return stack != null ? stack.peek() : null;
      }
docs: Get the value of the transaction time.
  @return The value of the transaction time. (NullAllowed)