AvroRecordBuilder b = new AvroRecordBuilder(name, schema);
ArrayList<Field> fields = (ArrayList<Field>) schema.getFields();
for (Field field : fields) {
if (field.schema().getType().getName().equalsIgnoreCase("fixed") || field.schema().getType().getName().equalsIgnoreCase("bitmap")) {
b.addItemBuilder(field.name(), new AvroFixedBuilder(field.name(), field.schema()));
if (field.defaultValue() == null)
b.notReadyToBinary();
} else if (field.schema().getType().getName().equalsIgnoreCase("record")) {
b.addItemBuilder(field.name(), makeRecordBuilder(field.name(), field.schema()));
if (field.defaultValue() == null)