code: private void addHttpSessionIdListener(HttpSessionIdListener listener, boolean securityCheckNeeded) throws SecurityException {
          if (securityCheckNeeded) {
              SecurityManager sm = System.getSecurityManager();
              if (sm != null) {
                  sm.checkPermission(perm);
              }
          }
          
          ((IHttpSessionContext31)this.getSessionContext()).addHttpSessionIdListener(listener, name);
      }
docs: /*
  New method added for HttpSessionIdListener