code: protected ArrayList<EnvLoaderListener> getEnvironmentListeners()
    {
      ArrayList<EnvLoaderListener> listeners;
      listeners = new ArrayList<EnvLoaderListener>();
  
      /*
      // add the descendant listeners
      if (_childListeners != null) {
        synchronized (_childListenerLock) {
          ClassLoader loader;
  
          for (loader = this; loader != null; loader = loader.getParent()) {
            if (loader instanceof EnvironmentClassLoader) {
              ArrayList<EnvironmentListener> childListeners;
              childListeners = _childListeners.getLevel(loader);
  
              if (childListeners != null)
                listeners.addAll(childListeners);
            }
          }
        }
      }
      */
  
      if (_listeners == null) {
        return listeners;
      }
      
      ArrayList<EnvLoaderListener> envListeners = _listeners;
  
      if (envListeners != null) {
        synchronized (envListeners) {
          for (int i = 0; i < envListeners.size(); i++) {
            EnvLoaderListener listener = envListeners.get(i);
  
            if (listener != null)
              listeners.add(listener);
            else {
              envListeners.remove(i);
              i--;
            }
          }
        }
      }
      
      return listeners;
    }
docs: Returns the listeners.