bInvoke = (("create".equals(nextTobj.getEventName()) && inst.getState() == Instance.DIRTY) &&
"update".equals(inst.getPendingEventName()))
? false
: !inst.getPendingEventName().equals(nextTobj.getEventName());
inst.invokePendingEvent();
}
if (bInvoke && nextTobj.getEventName() != null
// Ignore pending "update" events - they should only run if there has been an actual update.
&& (!nextTobj.getEventName().equals("update") || inst.getState() == Instance.DIRTY)