CoverageInfo ci = (CoverageInfo) context;
DimensionInfo time = ci.getMetadata().get(ResourceInfo.TIME, DimensionInfo.class);
if (time == null) {
LOGGER.log(Level.FINE, "We received a coverage info that has no " +
"associated time, cannot add EO metadata to it: "+ ci.prefixedName());
return;
}
GridCoverage2DReader reader = (GridCoverage2DReader) ci.getGridCoverageReader(null, null);
String coverageId = NCNameResourceCodec.encode(ci);
WCSDimensionsHelper dimensionHelper = new WCSDimensionsHelper(time, reader, coverageId);