if (layerCount == 0) {
throw new WmsException("No LAYERS has been requested",
getClass().getName());
}
Data catalog = req.getWMS().getData();
LOGGER.fine(catalog.toString());
String layerName = null;
FeatureTypeInfo ftype = null;
try {
LOGGER.fine("looking featuretypeinfos");
for (int i = 0; i < layerCount; i++) {
layerName = (String) layers.get(i);
LOGGER.fine("Looking for layer " + layerName);
ftype = catalog.getFeatureTypeInfo(layerName);
req.addLayer(ftype);
LOGGER.fine(layerName + " found");
}
} catch (NoSuchElementException ex) {
throw new WmsException(ex,