if (om.getDeclaredInserts().size() > 0) {
if (om.getDeclaredInserts() != null) {
    private void onObjectEvent(ObjectEvent e) {        Object obj = e.getObject();        List oms = getObjectMaps(e.getObjectMap());        if (e instanceof DeleteEvent) {            Collections.reverse(oms);        }        m_engine.clearOperations(obj);        for (Iterator it = oms.iterator(); it.hasNext(); ) {            ObjectMap om = (ObjectMap) it.next();            if (e instanceof CreateEvent) {                if (om.getDeclaredInserts().size() > 0) {                    addOperations(obj, om.getDeclaredInserts());                } else {                    addDML(obj, om.getDeclaredTables(), true);                }            } else if (e instanceof DeleteEvent) {                if (om.getDeclaredDeletes().size() > 0) {                    addOperations(obj, om.getDeclaredDeletes());                } else {                    addDML(obj, om.getDeclaredTables(), false);                }            } else {                throw new IllegalArgumentException                    ("not a create or delete event");            }        }    }