GenericArraySerializer serializer = GenericArraySerializer.get(fieldSchema.getElementType());
GenericArray genericArray = serializer.fromByteBuffer(byteBuffer);
value = genericArray;
} else if (type == Type.MAP) {
StatefulHashMapSerializer serializer = StatefulHashMapSerializer.get(fieldSchema.getValueType());
StatefulHashMap map = serializer.fromByteBuffer(byteBuffer);
value = map;
} else {
value = fromByteBuffer(fieldSchema, byteBuffer);
}