code: @Override
      public synchronized ChainData[] getAllChains(String channelName) throws ChannelException {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
              Tr.entry(tc, "getAllChains: " + channelName);
          }
          if (null == channelName) {
              throw new InvalidChannelNameException("Null channelName found");
          }
  
          ChainDataImpl chainData = null;
          List<ChainData> chainDataList = new ArrayList<ChainData>();
  
          // Collect all chains referring to the channel
          Iterator<ChainDataImpl> chainDataIter = chainDataMap.values().iterator();
          while (chainDataIter.hasNext()) {
              chainData = chainDataIter.next();
              if (chainData.containsChannel(channelName)) {
                  chainDataList.add(chainData);
              }
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
              Tr.exit(tc, "getAllChains");
          }
          return chainDataList.toArray(new ChainData[chainDataList.size()]);
      }
docs: /*
  @see
  com.ibm.wsspi.channelfw.ChannelFramework#getAllChains(java.lang.String)