allAssets.addAll(eventQueue);
allEvents.addAll(eventQueue); allEventsChanged = true;
    protected void sendEvents() {        if (!eventQueue.isEmpty()) {            AssetChangeEvent[] events = new AssetChangeEvent[0];            synchronized (eventQueue) {                if (logger.isDebugEnabled()) logger.debug("AssetChangeEvent -- sendEvents(): numEvents=" + eventQueue.size());                allAssets.addAll(eventQueue); //add current set into permanent set                                events =                   (AssetChangeEvent[]) eventQueue.toArray(new AssetChangeEvent[0]);                eventQueue.clear();            }            publishAssets(events); //publish new assets first            notifyListeners(events); // now notify listeners                    }    }