private void fireDesignChangeEvent(VirtualDocument doc, int type) throws WGAPIException {
List updateLogs = new ArrayList();
updateLogs.add(new WGUpdateLog(type, new Date(), getName(), WGDocument.buildDocumentKey(doc, _db).toString()));
WGDesignChangeEvent event = new WGDesignChangeEvent(this, _db, updateLogs);
Iterator listeners = _designChangeListeners.iterator();
while (listeners.hasNext()) {
((WGDesignChangeListener) listeners.next()).designChanged(event);
}