while (it.hasNext()) {
SimpleFeature f = it.next();
SimpleFeature g = w.next();
for (PropertyDescriptor pd : collection.getSchema().getDescriptors()) {
w.write();
w.close();
it.close();
while (it.hasNext()) {
SimpleFeature f = it.next();
SimpleFeature g = w.next();
for (PropertyDescriptor pd : collection.getSchema().getDescriptors()) {
w.write();
w.close();
it.close();