code: protected void unsetThreadContextProvider(ServiceReference<ThreadContextProvider> ref) {
          String threadContextProviderName = (String) ref.getProperty(COMPONENT_NAME);
          if (threadContextProviders.removeReference(threadContextProviderName, ref)
              && Boolean.TRUE.equals(ref.getProperty(ThreadContextProvider.ALWAYS_CAPTURE_THREAD_CONTEXT)))
              alwaysEnabled.remove(threadContextProviderName);
      }
docs: Declarative Services method for removing a thread context provider.
  
  @param ref reference to the service