Iterator<ILayer> iterator = mapLayers.iterator();
while (iterator.hasNext()) {
ILayer layer = iterator.next();
IGeoResource geoResource = layer.findGeoResource(MapMarksGraphics.class);
if (geoResource != null) {
MapMarksGraphics mapGraphic = geoResource.resolve(MapMarksGraphics.class, null);
this.mapMarkGraphic = mapGraphic;
this.mapGraphicLayer = layer;
break;
}
}