List<LayerIdentifier> identifiers = GeoServerExtensions.extensions(LayerIdentifier.class);
for (int i = 0; i < requestedLayers.size(); i++) {
final MapLayerInfo layer = requestedLayers.get(i);
LayerIdentifier identifier = getLayerIdentifier(layer, identifiers);
List<FeatureCollection> identifiedCollections = identifier.identify(requestParams,
maxFeatures);
if (identifiedCollections != null) {
for (FeatureCollection identifierCollection : identifiedCollections) {
FeatureCollection fc = selectProperties(requestParams, identifierCollection);
maxFeatures = addToResults(fc, results, layer, request, maxFeatures);