myArray = new AssetChangeEvent[allAssets.size()]; allAssets.copyInto(myArray);
myArray = new AssetChangeEvent[allEvents.size()]; allEvents.copyInto(myArray);
    public AssetChangeEvent[] addChangeListener(AssetChangeListener acl) {        if (!changeListeners.contains(acl)) {            changeListeners.add(acl);        }        //Now return the current list of assets. This way the lsitener won't miss any new assets.        AssetChangeEvent myArray[];        synchronized(eventQueue) {            myArray = new AssetChangeEvent[allAssets.size()];            allAssets.copyInto(myArray);        }        return myArray;    }