public Object parse(String value) throws Exception {
// palette
try {
final InverseColorMapOp model = PaletteManager.getPalette(value);
if (model == null) {
throw new WmsException("Palette " + value
+ " could not be found "
+ "in $GEOSERVER_DATA_DIR/palettes directory");
}
return model;
} catch (Exception e) {
throw new WmsException(e, "Palette " + value
+ " could not be loaded", null);
}
}