code: public void deactivate(ComponentContext context) {
          if (contextRef.get() == null) {
              // Components are only deactivated if they activate successfully,
              // and component instances are discarded after being deactivated.
              // This is either DS or programmer error.
              throw new IllegalStateException("not activated");
          }
  
          this.contextRef.set(null);
      }
docs: Deactivates the map. Will trigger a release of all held services.