code: protected boolean isIdleLongerThan (int sec) {
          long now = System.currentTimeMillis();
          try (Lock ignored = locker.lockIfNotHeld()) {
              return ((sessionData.getAccessedTime() + (sec * 1000)) <= now);
          }
      }
docs: Check if the Session has been idle longer than a number of seconds.
  
  @param sec the number of seconds
  @return true if the session has been idle longer than the interval