code: private void determineIsSSLEnabled() {
          // Loop through each channel in the outbound chain represented by this
          // endpoint
          int i = 0;
          for (OutboundChannelDefinition def : this.outboundChannelDefs) {
              // Look for the SSL channel factory.
              if (SSLChannelFactory.class.isAssignableFrom(def.getOutboundFactory())) {
                  // Found SSL channel factory.
                  if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                      Tr.debug(tc, "Found SSLChannelFactory interface: " + def.getOutboundFactory());
                  }
                  this.sslChannelIndex = i;
                  break;
              }
              i++;
          }
      }
docs: Identify if one of the outbound channel definitions has a factory that
  implements
  the SSLChannelFactory.