code: @Override
      public Collection<? extends NameClassPair> listInstances(JavaColonNamespace namespace, String nameInContext) throws NamingException {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
          if (isTraceOn && tc.isEntryEnabled())
              Tr.entry(tc, "listInstances (" + namespace + ", " + nameInContext + ")");
  
          // Obtain the injection metadata for the active component
          OSGiInjectionScopeData isd = getInjectionScopeData(namespace);
  
          if (isd != null) {
              Collection<? extends NameClassPair> retVal = isd.listInstances(namespace, nameInContext);
  
              if (isTraceOn && tc.isEntryEnabled())
                  Tr.exit(tc, "listInstances: " + retVal);
  
              return retVal;
          }
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.exit(tc, "listInstances : empty (no ISD)");
          return Collections.emptyList();
      }
docs: {@inheritDoc}