CopyFeatureCollection c = new CopyFeatureCollection(schema, features, monitor, worked,
mt, attributeMap, targetLayer.layerToMapTransform());
Envelope env = c.env;
targetLayer.eSetDeliver(false);
FeatureListener listener = new FeatureListener() {
long lastUpdate = System.currentTimeMillis();
long count = 0;
public void changed(FeatureEvent event) {
if(event.getType() == Type.ADDED) {
count ++;