code: public void deactivate(ComponentContext cc) throws IOException {
          ConfigProviderResolver.setInstance(null);
          shutdown();
          scheduledExecutorServiceRef.deactivate(cc);
      }
docs: Deactivate a context and set the instance to null
  
  @param cc