code: public synchronized void decrementActivityCount()
      {
          _activityCount--;
          if(_activityCount == 0)
          {
              this.notifyAll();
          }
          if (tc.isDebugEnabled()) Tr.debug(tc, "decrementActivityCount", new Object[]{this, new Integer(_activityCount)});
      }
docs: NOTE this does not include active transactions.