//TODO consider dealing with the Format instance instead of a String parsing or check against WCSUtils.isSupportedMDOutputFormat(String).
final GridCoverageFactory coverageFactory = CoverageFactoryFinder.getGridCoverageFactory(hints);
if (reader instanceof StructuredGridCoverage2DReader && formatSupportMDOutput(request.getFormat())) {
// Split the main request into a List of requests in order to read more coverages to be stacked
final Set<GridCoverageRequest> requests = helper.splitRequestToSet();
if (requests == null || requests.isEmpty()) {
throw new IllegalArgumentException("Splitting requests returned nothing");
} else {
if (LOGGER.isLoggable(Level.FINE)) {
LOGGER.fine("Splitting request generated " + requests.size() + " sub requests");