hints.add(new RenderingHints(JAI.KEY_BORDER_EXTENDER,BorderExtender.createInstance(BorderExtender.BORDER_COPY)));
// hints.add(new RenderingHints(JAI.KEY_REPLACE_INDEX_COLOR_MODEL,Boolean.FALSE));// TODO check interpolation
// get a reader for this coverage
final GridCoverage2DReader reader = (GridCoverage2DReader) cinfo.getGridCoverageReader(
new DefaultProgressListener(),
hints);
WCSDimensionsSubsetHelper helper = parseGridCoverageRequest(cinfo, reader, request, extensions);
GridCoverageRequest gcr = helper.getGridCoverageRequest();