code: public static boolean existsBegunTxOnThread() {
          final Stack<BegunTx<?>> stack = threadLocal.get();
          return stack != null ? !stack.isEmpty() : false;
      }
docs: Is existing prepared begun-tx on thread?
  @return The determination, true or false.