FieldType fieldType = rec.getSchema().getFieldType(position);
if(fieldType != FieldType.OBJECT)
throw new IllegalArgumentException("Attempting to serialize an Object as " + fieldType + " in field " + fieldName + ". Carefully check your schema for type " + rec.getSchema().getName() + ".");
ByteDataBuffer fieldBuffer = rec.getFieldBuffer(position);
FastBlobTypeSerializationState<Object> typeSerializationState = ((FastBlobStateEngine) framework).getTypeSerializationState(typeName);
int ordinal = typeSerializationState.add(obj, rec.getImageMembershipsFlags());