}
private static SimpleFeatureType createOptimalSchema(String featureTypeName) throws SchemaException {
SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();
builder.setName(featureTypeName);
builder.crs(DefaultGeographicCRS.WGS84).add("bounds", MultiPolygon.class);
builder.length(128).nillable(true).add("description", String.class);
builder.length(80).nillable(false).defaultValue("").add("extensionId", String.class);
builder.length(80).nillable(true).add("groupId", String.class);
builder.length(80).nillable(false).add("id", String.class);
builder.length(1024).nillable(false).defaultValue("").add("memento", String.class);