code: public ConnectionTcp findConnectionByThreadId(long threadId)
    {
      for (PortTcp listener : getPorts()) {
        ConnectionTcp conn = listener.findConnectionByThreadId(threadId);
  
        if (conn != null)
          return conn;
      }
  
      return null;
    }
docs: Finds the TcpConnection given the threadId