for (FeatureCollection<?, ?> fc : resultsList) {
FeatureIterator<?> iterator = fc.features();
try {
while (iterator.hasNext()) {
Feature feature = iterator.next();
FeatureAccessor accessor = new FeatureAccessorImpl(feature);
map.put(feature.getIdentifier(), accessor);
}
} finally {
iterator.close();
}