code: @Override
      public Socket createSocket(String host, int port) throws IOException {
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
              Tr.debug(tc, "SocketFactory attempting to create socket for host: " + host + " port: " + port);
  
          // check for SSL addresses
          if (Util.isEncodedHost(host, HOST_PROTOCOL)) {
              String sslConfigName = Util.decodeHostInfo(host);
              host = Util.decodeHost(host);
              return createSSLSocket(host, (char) port, sslConfigName);
          } else {
              return createPlainSocket(host, port);
          }
      }
docs: Create a client socket of the appropriate
  type using the provided address and port information.
  
  @return A Socket (either plain or SSL) configured for connection
  to the target.