code: @Override
      public Collection<? extends NameClassPair> listInstances(JavaColonNamespace namespace, String nameInContext) throws NamingException {
          ComponentMetaData cmd = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData();
          J2EEName j2eeName = cmd.getJ2EEName();
          Collection<? extends NameClassPair> instances;
          if (JavaColonNamespace.APP.equals(namespace) || JavaColonNamespace.GLOBAL.equals(namespace)) {
              try {
                  ClientSupport jndiHelper = clientSupportFactory.getRemoteClientSupport();
                  instances = jndiHelper.listRemoteInstances(j2eeName.getApplication(), j2eeName.getModule(), j2eeName.getComponent(), namespace.toString(), nameInContext);
              } catch (RemoteException ex) {
                  //ffdc
                  instances = Collections.emptyList();
              }
          } else {
              instances = Collections.emptyList();
          }
          return instances;
      }
docs: /*
  (non-Javadoc)
  
  @see com.ibm.ws.container.service.naming.JavaColonNamingHelper#listInstances(com.ibm.ws.container.service.naming.NamingConstants.JavaColonNamespace, java.lang.String)