List<SimpleFeature> list = new ArrayList<SimpleFeature>();
FeatureIterator<SimpleFeature> reader = results.features();
try {
while( reader.hasNext() ) {
if( monitor != null && monitor.isCanceled() ) return list;
list.add( new AdaptableFeature( reader.next(), layer) );
}
}
finally {
reader.close();
}