code: public List<ConnectionListener> getConnectionListeners() {
          if (changes == null) {
              return (List<ConnectionListener>)Collections.EMPTY_LIST;
          }
  
          List<EventListener> listeners = changes.getListenerList(AMQP);
          if ((listeners == null) || listeners.isEmpty()) {
              return (List<ConnectionListener>)Collections.EMPTY_LIST;
          }
  
          ArrayList<ConnectionListener> list = new ArrayList<ConnectionListener>();
          for (EventListener listener : listeners) {
              list.add((ConnectionListener)listener);
          }
  
          return list;
      }
docs: Returns the list of ConnectionListeners registered with this AmqpClient instance.
  
  @return List<ConnectionListener>   list of ConnectionListeners