code: private void stopChannel(Channel channel) throws ChannelException {
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
              Tr.entry(tc, "stopChannel");
          }
          String channelName = channel.getName();
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
              Tr.debug(tc, "channelName=" + channelName);
          }
          ChannelContainer channelContainer = channelRunningMap.get(channelName);
          try {
              channel.stop(0);
          } catch (ChannelException ce) {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                  Tr.debug(tc, "Channel " + channel + " threw ChannelException " + ce.getMessage());
              throw ce;
          } catch (Throwable e) {
              FFDCFilter.processException(e, getClass().getName() + ".stopChannel", "1338", this, new Object[] { channel });
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                  Tr.debug(tc, "Channel " + channel + " threw non-ChannelException " + e.getMessage());
              throw new ChannelException(e);
          }
          // Update the state.
          channelContainer.setState(RuntimeState.INITIALIZED);
          if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
              Tr.exit(tc, "stopChannel");
          }
      }
docs: Stop a channel. It is assumed that the channel has already been disabled
  (inbound).
  Once this method is called for each channel in the chain, the chain's state
  will
  change to INITIALIZED.
  
  @param channel
  to stop