}
private void updateAOIService( ILayer layer, Geometry newAOI )
throws IOException {
IAOIService aOIService = PlatformGIS.getAOIService();
AOIProxy aoiLayerProxy = aOIService.findProxy(AOI_LAYER_ID);
AOILayerStrategy aOILayerStrategy = (AOILayerStrategy)aoiLayerProxy.getStrategy();
aOILayerStrategy.setActiveLayer(layer);
aOILayerStrategy.setGeometry(newAOI);
// if the current stragegy does not equal the bounary layer strategy set it
if (!aOIService.getProxy().equals(aoiLayerProxy)) {