docs: private static URI parseStringAsUri(String ipString) {
      try {
        URI uri = new URI("socket://" + ipString);
        if (uri.getHost() == null || uri.getPort() == -1) {
          throw new URISyntaxException(ipString, "URI must have host and port parts");
        }
        return uri;
      } catch (URISyntaxException e) {
        throw (IllegalArgumentException) new IllegalArgumentException(
            "Graphite server address needs to be defined as {host}:{port}.").initCause(e);
      }
    }