for (int i = 0; i < dataTypes.size(); i++) {
DataType dataType = dataTypes.get(i);
ByteBuffer arg = components.get(i);
// serialize type
String typeStr = dataType.cassandraType();
// TODO support type aliases for DynamicComposite
ByteBuffer typeBin = types[i] = codec.serialize(typeStr);
int sz = typeBin.remaining();
if (sz > 65535)
throw new IllegalArgumentException("Component at index #"+i+" in DynamicCompositeType too long ("+sz+") - max 65535 bytes in serialized form");