code: public InetSocketAddress getEndpoint() {
          return endpoint == null ? new InetSocketAddress(uri.getHost(), uri.getPort()) : endpoint;
      }
docs: Returns either the {@link InetSocketAddress} provided to the constructor or a new instance for every invocation based on the {@link String} provided to the constructor.
  
  @return An instance of {@link InetSocketAddress}.