code: protected OSGiInjectionScopeData getInjectionScopeData(NamingConstants.JavaColonNamespace namespace) throws NamingException {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
          OSGiInjectionScopeData isd = null;
  
          // Get the ComponentMetaData for the currently active component.
          // There is no comp namespace if there is no active component.
          ComponentMetaData cmd = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData();
  
          if (cmd == null) {
              NamingException nex = new NamingException(Tr.formatMessage(tc, "JNDI_NON_JEE_THREAD_CWNEN1000E"));
              if (isTraceOn && tc.isDebugEnabled())
                  Tr.debug(tc, "getInjectionScopeData : (no CMD) : " + nex.toString(true));
              throw nex;
          }
  
          isd = injectionEngine.getInjectionScopeData(cmd, namespace);
  
          if (isTraceOn && tc.isDebugEnabled())
              Tr.debug(tc, cmd + " -> " + isd);
  
          return isd;
      }
docs: Internal method to obtain the injection metadata associated with
  the specified component metadata. <p>
  
  @return the associated injection metadata; or null if none exists