if (GML._Feature.equals(name)) {
if (object instanceof SimpleFeature) {
return object;
} else if (object instanceof FeatureImpl) {
ComplexAttribute complex = (ComplexAttribute) object;
Identifier ident = complex.getIdentifier();
if (ident == null) {
return object;
}
String id;
if (ident instanceof FeatureId) {
id = ((FeatureId) ident).getRid();
} else {
id = Converters.convert(ident.getID(), String.class);
}
if (idSet.idExists(id)) {
return null;
}
return object;