AttributeTypeBuilder attBuilder = new AttributeTypeBuilder();
builder.add(toGeometryAttribute(iShapeType, crs,attBuilder));
builder.setDefaultGeometry("geom");
for (int i = 0; i < sFields.length; i++) {
AttributeType type = attBuilder.binding(fields[i]).buildType();
AttributeDescriptor descriptor = attBuilder.buildDescriptor(sFields[i], type);
builder.add(descriptor);
}
return builder.buildFeatureType();