//todo improve it:
//1. read in the classes and validate them
//2. perform only hotswapping if all is fine
int class_count = bb.getInt();
for(int i = 0; i < class_count; i++){
ReferenceTypeId refId = idMan.readReferenceTypeId(bb);
Class old_class = refId.getType();
int class_size = bb.getInt();
byte[] class_data = new byte[class_size];
bb.get(class_data);
System.out.println("Hotswapping " + old_class.getName());
VMVirtualMachine.redefineClass(old_class, class_data);