// if the type is not a feature, it should be wrapped with
// a fake feature type, so attributes can be chained/nested
AttributeType type = mapping.getTargetFeature().getType();
if (!(type instanceof FeatureType)) {
// nasty side-effect: constructor edits mapping to use this type proxy
new NonFeatureTypeProxy(type, mapping);
}
}
} catch (RuntimeException e) {
// dispose all source data stores in the input mappings
for (FeatureTypeMapping mapping : mappings) {