code: public static void writeDefaultWindowToLocation( String locationPath, Window window ) throws IOException {
          writeWindowFile(locationPath + File.separator + GrassLegacyConstans.PERMANENT_MAPSET + File.separator
                  + GrassLegacyConstans.DEFAULT_WIND, window);
      }
docs: Write default region window to the PERMANENT mapset
  
  @param locationPath the path to the location folder
  @param the active Window object
  @throws IOException