code: public static void writeActiveWindowToMapset( String mapsetPath, Window window ) throws IOException {
          writeWindowFile(mapsetPath + File.separator + GrassLegacyConstans.WIND, window);
      }
docs: Write active region window to the mapset
  
  @param mapsetPath the path to the mapset folder
  @param the active Window object
  @throws IOException