if (type.equals(JGrassConstants.GRASSBINARYRASTERMAP)) {
String[] mapsetpathAndMapname = JGrassCatalogUtilities
.getMapsetpathAndMapnameFromJGrassMapGeoResource(mr);
try {
removeGrassRasterMap(mapsetpathAndMapname[0], mapsetpathAndMapname[1]);
((JGrassMapsetGeoResource) mr.parent(new NullProgressMonitor())).removeMap(
mapsetpathAndMapname[1], JGrassConstants.GRASSBINARYRASTERMAP);
IMap activeMap = ApplicationGIS.getActiveMap();
List<ILayer> mapLayers = activeMap.getMapLayers();
String mapName = mr.getTitle();