final String typeName = featureType.getTypeName();
final BoundingBox bounds = addedFeature.getBounds();
ReferencedEnvelope referencedEnvelope = ReferencedEnvelope.reference(bounds);
String fid = addedFeature.getID();
FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2(null);
Filter filter = ff.id(Collections.singleton(ff.featureId(fid)));
doFireFeaturesAdded(typeName, referencedEnvelope, filter);
}
private void fireChanged(final SimpleFeature changedFeature) {
final String typeName = featureType.getTypeName();