public void geometryUpdate(Geometry oldGeometry, Geometry newGeometry) {
		if (oldGeometry != null) {
			geometries.remove(oldGeometry);
		}
		if (newGeometry != null) {
			geometries.add(newGeometry);
		}

		if (geometries.size() == 0) {
			searchGeometry = null;
			updateGeometryOnMap();

		} else if (geometries.size() == 1) {
			searchGeometry = geometries.get(0);
			updateGeometryOnMap();

		} else {
			 SearchCommService.mergeGeometries(geometries, new DataCallback<Geometry>() {
				public void execute(Geometry result) {
					searchGeometry = result;
					updateGeometryOnMap();
				}
			});
		}
	}
public void geometryUpdate ( Geometry oldGeometry , Geometry newGeometry ) { if ( oldGeometry != null ) { geometries . remove ( oldGeometry ) ; } if ( newGeometry != null ) { geometries . add ( newGeometry ) ; } if ( geometries . size ( ) == 0 ) { searchGeometry = null ; updateGeometryOnMap ( ) ; } else if ( geometries . size ( ) == 1 ) { searchGeometry = geometries . get ( 0 ) ; updateGeometryOnMap ( ) ; } else { SearchCommService . mergeGeometries ( geometries , new DataCallback < Geometry > ( ) { public void execute ( Geometry result ) { searchGeometry = result ; updateGeometryOnMap ( ) ; } } ) ; } }
----------------------------------------------------------