// configure all available coverages, preserving backwards compatibility for the
// case of single coverage reader
if(names.length > 1) {
for (String name : names) {
SingleGridCoverage2DReader singleReader = new SingleGridCoverage2DReader(reader, name);
configureCoverageInfo(builder, info, add, name, name, singleReader,
customParameters);
}
} else {
configureCoverageInfo(builder, info, add, names[0], coverageName, reader,