code: public static InetSocketAddress replaceUnresolvedNumericIp(
  			InetSocketAddress inetSocketAddress) {
  		if (!inetSocketAddress.isUnresolved()) {
  			return inetSocketAddress;
  		}
  		InetSocketAddress inetAddressForIpString = createForIpString(
  				inetSocketAddress.getHostString(), inetSocketAddress.getPort());
  		if (inetAddressForIpString != null) {
  			return inetAddressForIpString;
  		}
  		else {
  			return inetSocketAddress;
  		}
  	}
docs: Replaces an unresolved InetSocketAddress with a resolved instance in the case that
  the passed address is a numeric IP address (both IPv4 and IPv6 are supported).
  
  @param inetSocketAddress socket address instance to process
  @return processed socket address instance