if (coverageBands == null || coverageBands.isEmpty()) {
throw new IllegalArgumentException("No output bands have been specified ");
}
coverageInfo = coverageView.createCoverageInfo(name, coverageStoreInfo, builder);
final LayerInfo layerInfo = builder.buildLayer(coverageInfo);
setResponsePage(new ResourceConfigurationPage(layerInfo, true));
} catch (Exception e) {
LOGGER.log(Level.SEVERE, "Failed to create Coverage View", e);
error(new ParamResourceModel("creationFailure", this, getFirstErrorMessage(e))
.getString());
}