code: public synchronized void deactivate() {
          // Allow garbage collection of all slots reserved by this component.
          // Clean up all the metadata used by the slots.
          for (MetaDataSlotImpl slot : slots) {
              MetaDataManager<?, ?> manager = (MetaDataManager<?, ?>) slot.getManager();
              manager.destroyMetaDataSlot(slot);
          }
          slots = null;
      }
docs: declarative service