List oms = getObjectMaps(e.getObjectMap());
List oms = getObjectMaps(map);
    private void onObjectEvent(ObjectEvent e) {        Object obj = e.getObject();        List oms = getObjectMaps(e.getObjectMap());        if (e instanceof DeleteEvent) {            Collections.reverse(oms);        }	if (e instanceof DeleteEvent) {	    m_engine.removeUpdates(obj);	} else {	    if (m_engine.hasUpdates(obj)) {		throw new IllegalStateException		    ("updates exist for object being created");	    }	    m_engine.markUpdate(obj);	}        for (Iterator it = oms.iterator(); it.hasNext(); ) {            ObjectMap om = (ObjectMap) it.next();            if (e instanceof CreateEvent) {                if (om.getDeclaredInserts() != null) {                    addOperations(obj, om.getDeclaredInserts());                } else {                    addDML(obj, om.getDeclaredTables(), true);                }            } else if (e instanceof DeleteEvent) {                if (om.getDeclaredDeletes() != null) {                    addOperations(obj, om.getDeclaredDeletes());                } else {                    addDML(obj, om.getDeclaredTables(), false);                }            } else {                throw new IllegalArgumentException                    ("not a create or delete event");            }        }    }