code: private static String getHostPort(SocketAddress address) {
          if (address instanceof ResourceAddress) {
              ResourceAddress lowest = getLowestTransportLayer((ResourceAddress)address);
              return format(HOST_PORT_FORMAT, lowest.getResource().getHost(), lowest.getResource().getPort());
          }
          if (address instanceof InetSocketAddress) {
              InetSocketAddress inet = (InetSocketAddress)address;
              // we don't use inet.toString() because it would include a leading /, for example "/127.0.0.1:21345"
              // use getHostString() to avoid a reverse DNS lookup
              return format(HOST_PORT_FORMAT, inet.getHostString(), inet.getPort());
          }
          return null;
      }
docs: Method attempting to retrieve host port identifier
  @param address
  @return