code: public static boolean checkRasterMapConsistence( String mapsetPath, String mapname ) {
          File file = null;
          File file2 = null;
          file = new File(mapsetPath + File.separator + GrassLegacyConstans.FCELL + File.separator + mapname);
          file2 = new File(mapsetPath + File.separator + GrassLegacyConstans.CELL + File.separator + mapname);
          // the map is in one of the two
          if (!file.exists() && !file2.exists())
              return false;
  
          /*
           * helper files
           */
          file = new File(mapsetPath + File.separator + GrassLegacyConstans.CELLHD + File.separator + mapname);
          if (!file.exists())
              return false;
          // it is important that the folder cell_misc/mapname comes before the
          // files in it
          file = new File(mapsetPath + File.separator + GrassLegacyConstans.CELL_MISC + File.separator + mapname);
          if (!file.exists())
              return false;
  
          return true;
      }
docs: Returns the list of files involved in the raster map issues. If for example a map has to be
  deleted, then all these files have to.
  
  @param mapsetPath - the path of the mapset
  @param mapname -the name of the map
  @return the array of strings containing the full path to the involved files