private void m58b(SerialNumber serialNumber, String str) {
   LegacyModuleControllerConfiguration legacyModuleControllerConfiguration =
       (LegacyModuleControllerConfiguration) this.f101e.get(serialNumber);
   legacyModuleControllerConfiguration.setName(str);
   MotorControllerConfiguration a =
       m48a(ControllerConfiguration.NO_SERIAL_NUMBER, "motor_1", "motor_2", "wheels");
   a.setPort(0);
   ServoControllerConfiguration a2 =
       m49a(ControllerConfiguration.NO_SERIAL_NUMBER, m65f(), "servos");
   a2.setPort(1);
   DeviceConfiguration a3 = m47a(ConfigurationType.IR_SEEKER, "ir_seeker", 2);
   DeviceConfiguration a4 = m47a(ConfigurationType.LIGHT_SENSOR, "light_sensor", 3);
   List arrayList = new ArrayList();
   arrayList.add(a);
   arrayList.add(a2);
   arrayList.add(a3);
   arrayList.add(a4);
   for (int i = 4; i < 6; i++) {
     arrayList.add(new DeviceConfiguration(i));
   }
   legacyModuleControllerConfiguration.addDevices(arrayList);
 }
 private ServoControllerConfiguration m49a(
     SerialNumber serialNumber, ArrayList<String> arrayList, String str) {
   ServoControllerConfiguration servoControllerConfiguration;
   if (serialNumber.equals(ControllerConfiguration.NO_SERIAL_NUMBER)) {
     servoControllerConfiguration = new ServoControllerConfiguration();
   } else {
     servoControllerConfiguration = (ServoControllerConfiguration) this.f101e.get(serialNumber);
   }
   servoControllerConfiguration.setName(str);
   ArrayList arrayList2 = new ArrayList();
   for (int i = 1; i <= 6; i++) {
     boolean z;
     String str2 = (String) arrayList.get(i - 1);
     if (str2.equals("NO DEVICE ATTACHED")) {
       z = false;
     } else {
       z = true;
     }
     arrayList2.add(new ServoConfiguration(i, str2, z));
   }
   servoControllerConfiguration.addServos(arrayList2);
   return servoControllerConfiguration;
 }