code: public static TransportAddress fromHostAndPort(final HostAndPort hostAndPort) {
          InetSocketAddress address = new InetSocketAddress(hostAndPort.getHost(), hostAndPort.getPortOrDefault(DEFAULT_PORT));
          return new InetSocketTransportAddress(address);
      }
docs: Convert a {@link HostAndPort} instance to {@link TransportAddress}. If the {@link HostAndPort} instance doesn't
  contain a port the resulting {@link TransportAddress} will have {@link #DEFAULT_PORT} as port.
  
  @param hostAndPort a valid {@link HostAndPort} instance
  @return a {@link TransportAddress} equivalent to the provided {@link HostAndPort} instance