public static void activateSlot(StorageSlot self) {
    if (self.collectionValuedP()) {
      { Surrogate activecollection = Surrogate.collectionToActiveCollection(self.slotBaseType);

        if (activecollection == null) {
          {
            Stella.STANDARD_WARNING.nativeStream.println("Warning: No active collection defined for `" + self.slotBaseType + "'.");
            Stella.STANDARD_WARNING.nativeStream.println("   Cannot activate slot `" + self + "'.");
          }
;
          KeyValueList.setDynamicSlotValue(self.dynamicSlots, Stella.SYM_STELLA_STORED_ACTIVEp, Stella.FALSE_WRAPPER, null);
          return;
        }
        self.slotBaseType = Surrogate.collectionToActiveCollection(self.slotBaseType);
      }
    }
    KeyValueList.setDynamicSlotValue(self.dynamicSlots, Stella.SYM_STELLA_STORED_ACTIVEp, Stella.TRUE_WRAPPER, null);
  }