public boolean isFlushed(final Object obj, Property prop) { if (!hasObjectData(obj)) { return true; }  final boolean[] result = { true };  prop.dispatch(new Property.Switch() { public void onRole(Role r) { PropertyData pd = getObjectData(obj).getPropertyData(r); if (pd == null) { result[0] = true; } else { result[0] = pd.isFlushed(); } }  public void onAlias(Alias a) { result[0] = isFlushed(obj, a.getTarget()); }  public void onLink(Link l) { result[0] = isFlushed(obj, l.getFrom().getReverse()); } });  return result[0];
public boolean isFlushed() { return m_events.size() == 0;
    public boolean isFlushed(final Object obj, Property prop) {	if (!hasObjectData(obj)) {	    return true;	}	final boolean[] result = { true };	prop.dispatch(new Property.Switch() {		public void onRole(Role r) {		    PropertyData pd = getObjectData(obj).getPropertyData(r);		    if (pd == null) {			result[0] = true;		    } else {			result[0] = pd.isFlushed();		    }		}		public void onAlias(Alias a) {		    result[0] = isFlushed(obj, a.getTarget());		}		public void onLink(Link l) {		    result[0] = isFlushed(obj, l.getFrom().getReverse());		}	    });	return result[0];    }