code: private void addToJ2eeNameList(String j2eeName, int size, ArrayList listenerJ2eeNames) {
          int start = listenerJ2eeNames.size();
          int end = start + size;
          if (com.ibm.ejs.ras.TraceComponent.isAnyTracingEnabled() && LoggingUtil.SESSION_LOGGER_CORE.isLoggable(Level.FINE)) {
              StringBuffer sb = new StringBuffer("starting at ").append(start).append(" going to ").append(end).append(" for ").append(j2eeName);
              LoggingUtil.SESSION_LOGGER_CORE.logp(Level.FINE, methodClassName, "addToJ2eeNameList", sb.toString());
          }
          for (int x = start; x < end; x++) {
              listenerJ2eeNames.add(j2eeName);
          }
      }
docs: /*
  Keeps track of J2EE names of listeners. We only do this for global
  sessions.
  In this case, one Enterprise (J2EE) app may be stopped, so we need to stop
  listeners
  for that app.