*
* @param recordDescriptor The Record Descriptor
*/
public GenericRecordBuilder(RecordDescriptor recordDescriptor) {
this.recordDescriptor = recordDescriptor;
fb = new ComplexFeatureBuilder(recordDescriptor.getFeatureDescriptor());
for (PropertyDescriptor descriptor : recordDescriptor.getFeatureType().getDescriptors()) {
List<AttributeDescriptor> substitutionGroup = (List<AttributeDescriptor>) descriptor.getUserData().get("substitutionGroup");
if (substitutionGroup != null) {
for (Iterator<AttributeDescriptor> it = substitutionGroup.iterator(); it.hasNext();) {