public InternalIterator(
final SimpleFeatureCollection featureCollection,
final String visibility ) {
featureIterator = featureCollection.features();
if ((visibility == null) || visibility.isEmpty()) {
dataAdapter = new FeatureDataAdapter(
featureCollection.getSchema());
}
else {
dataAdapter = new FeatureDataAdapter(
featureCollection.getSchema(),
new GlobalVisibilityHandler(
visibility));
}
}