Iterator it = iterator(); while (it.hasNext()) { OMGeometry graphic = (OMGeometry) it.next(); Object tObj = graphic.getAppObject(); if ((appObj == tObj) || (appObj.equals(tObj))) { return (OMGeometry)graphic;
synchronized (graphics) { Iterator it = iterator(); while (it.hasNext()) { OMGeometry graphic = (OMGeometry) it.next(); Object tObj = graphic.getAppObject(); if ((appObj == tObj) || (appObj.equals(tObj))) { return (OMGeometry)graphic; }
    protected OMGeometry _getWithAppObject(Object appObj) {	Iterator it = iterator();	while (it.hasNext()) {	    OMGeometry graphic = (OMGeometry) it.next();	    Object tObj = graphic.getAppObject();	    if ((appObj == tObj) || (appObj.equals(tObj))) {	        return (OMGeometry)graphic;	    }	}	return null;    }