public static void addListener(GroupEventListener listener) {
        if (listener == null) {
            throw new NullPointerException();
        }
        listeners.add(listener);
    }
Registers a listener to receive events.

@param listener the listener.
xmppserver/src/main/java/org/jivesoftware/openfire/event/GroupEventDispatcher.java