code: String getJCAContextProviderName(Class<?> workContextClass) {
          ServiceReference<JCAContextProvider> ref = null;
          for (Class<?> cl = workContextClass; ref == null && cl != null; cl = cl.getSuperclass())
              ref = contextProviders.getReference(cl.getName());
  
          String name = ref == null ? null : (String) ref.getProperty(JCAContextProvider.CONTEXT_NAME);
          if (name == null && ref != null)
              name = (String) ref.getProperty("component.name");
          return name;
      }
docs: Returns the component name of the JCAContextProvider for the specified work context class.
  
  @param workContextClass a WorkContext implementation class or ExecutionContext.
  @return the component name of the JCAContextProvider.