code: public static InetSocketAddress inetSocketAddress(AbstractConfig config, String key) {
      Preconditions.checkNotNull(config, "config cannot be null");
      String value = config.getString(key);
      return parseInetSocketAddress(value);
    }
docs: Method is used to return an InetSocketAddress from a hostname:port string.
  
  @param config config to read the value from
  @param key    key for the value
  @return InetSocketAddress for the supplied string.