code: @Managed
     @ManagedDescription("The number of active locks")
     public int getNumLocks()
     {
        try
        {
           return getNumLocks.run();
        }
        catch (LockException e)
        {
           if (LOG.isTraceEnabled())
           {
              LOG.trace("An exception occurred: " + e.getMessage());
           }
        }
        return -1;
     }
docs: Returns the number of active locks.