code: int getAndResetCommitCount() {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              SibTr.entry(this, tc, "getAndResetCommitCount");
          int currentUncommittedReceiveCount = uncommittedReceiveCount;
          uncommittedReceiveCount = 0;
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
              SibTr.exit(this, tc, "getAndResetCommitCount", currentUncommittedReceiveCount);
          return currentUncommittedReceiveCount;
      }
docs: This method exists for the sole purpose of querying whether an application
  onMessage called recover under an auto_ack session. It returns the current
  value of the commit count, and then zeros the value.