class VCardEventDispatcher {
    private static final Logger Log = LoggerFactory.getLogger(VCardEventDispatcher.class);
    /**
     * List of listeners that will be notified when vCards are created, updated or deleted.
     */
    private static List<VCardListener> listeners = new CopyOnWriteArrayList<>();

    /**
     * Registers a listener to receive events when a vCard is created, updated or deleted.
     *
     * @param listener the listener.
     */
    public static void addListener(VCardListener listener) {
        if (listener == null) {
            throw new NullPointerException();
        }
        listeners.add(listener);
    }

    /**
     * Unregisters a listener to receive events.
     *
     * @param listener the listener.
     */
    public static void removeListener(VCardListener listener) {
        listeners.remove(listener);
    }

    /**
     * Dispatches that a vCard was updated to all listeners.
     *
     * @param user the user for which the vCard was set.
     * @param vCard the vcard updated.
     */
    public static void dispatchVCardUpdated(String user, Element vCard) {
        for (VCardListener listener : listeners) {
            try {
                listener.vCardUpdated(user, vCard); 
            } catch (Exception e) {
                Log.warn("An exception occurred while dispatching a 'vCardUpdated' event!", e);
            }
        }
    }

    /**
     * Dispatches that a vCard was created to all listeners.
     *
     * @param user the user for which the vCard was created.
     * @param vCard the vcard created.
     */
    public static void dispatchVCardCreated(String user, Element vCard) {<FILL_FUNCTION_BODY>}

    /**
     * Dispatches that a vCard was deleted to all listeners.
     *
     * @param user the user for which the vCard was deleted.
     * @param vCard the vcard deleted.
     */
    public static void dispatchVCardDeleted(String user, Element vCard) {
        for (VCardListener listener : listeners) {
            try {
                listener.vCardDeleted(user, vCard);
            } catch (Exception e) {
                Log.warn("An exception occurred while dispatching a 'vCardDeleted' event!", e);
            }
        }
    }

}

        for (VCardListener listener : listeners) {
            try {
                listener.vCardCreated(user, vCard);
            } catch (Exception e) {
                Log.warn("An exception occurred while dispatching a 'vCardCreated' event!", e);
            }
        }
    
<no_super_class>