bbs.publishChange(chng.object, chng.changes);
ArrayList changes_list = new ArrayList(1); changes_list.add(chng.change); if (log.isDebugEnabled()) log.debug("Publish change " + chng.change); bbs.publishChange(chng.object, changes_list);
    public void processQueue()    {	ArrayList changes = null;	synchronized (change_queue_lock) {	    changes = new ArrayList(change_queue);	    change_queue = new ArrayList();	}	int count = changes.size();	for (int i=0; i<count; i++) {	    Object change = changes.get(i);	    if (log.isDebugEnabled())		log.debug("about to publish " + change);	    if (change instanceof Change) {		Change chng = (Change) change;		bbs.publishChange(chng.object, chng.changes);	    } else  if (change instanceof Add) {		Add add = (Add) change;		bbs.publishAdd(add.object);	    } else  if (change instanceof Remove) {		Remove rem = (Remove) change;		bbs.publishRemove(rem.object);	    }	}    }