code: public GridCoverage2D buildRaster() {
          if (makeNew) {
              GridCoverage2D coverage = buildCoverage("raster", newWR, regionMap, crs);
              return coverage;
          } else {
              throw new RuntimeException("The raster is readonly, so no new raster can be built.");
          }
      }
docs: Creates a {@link GridCoverage2D} from the {@link Raster}.
  
  @return the coverage.