code: public void init(String chainId, ChannelFramework cfw) {
  
          tcpName = "TCP-" + chainId;
          sslName = "SSL-" + chainId;
          httpName = "HTTP-" + chainId;
          chainName = chainId;
          this.cfw = cfw;
  
          // If there is a chain that is in the CFW with this name, it was potentially
          // left over from a previous instance of the endpoint. There is no way to get
          // the state of the existing (old) CFW chain to set our chainState accordingly...
          // (in addition to the old chain pointing to old services and things.. )
          // *IF* there is an old chain, stop, destroy, and remove it.
          try {
              ChainData cd = cfw.getChain(chainName);
              if (cd != null) {
                  cfw.removeChain(cd);
  
              }
  
          } catch (ChainException e) {
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  Tr.debug(this, tc, "Error stopping chain " + chainName, this, e);
              }
          }
      }
docs: Initialize this chain manager: Channel and chain names shouldn't fluctuate as config changes,
  so come up with names associated with this set of channels/chains that will be reused regardless
  of start/stop/enable/disable/modify
  
  @param endpointId The id of the httpEndpoint
  @param cfw Channel framework