GridCoverageLoader loader = geoResource.resolve(GridCoverageLoader.class, monitor);
if( loader == null ){
// unable to load in memory
return;
}
GridCoverage2D coverage = (GridCoverage2D) loader.load(geom, monitor);
if(coverage!=null)
{
//setting rendering hints