code: private OSGiInjectionScopeData getCompInjectionScopeData(ComponentNameSpaceConfiguration compNSConfig) {
          if (isManagedBean(compNSConfig)) {
              return null;
          }
  
          ComponentMetaData cmd = compNSConfig.getComponentMetaData();
          if (cmd == null) {
              ModuleMetaData mmd = compNSConfig.getModuleMetaData();
              if (mmd == null) {
                  return null;
              }
              return getInjectionScopeData(mmd);
          }
  
          return getInjectionScopeData(cmd);
      }
docs: Gets the java:comp scope data for a configuration, or null if the
  configuration represents application.xml data or a managed bean.