protected static InetAddress toInetAddressOrThrow(String host) throws UnknownHostException {
    if (host == null || host.isEmpty()) {
      return null;
    }

    if (host.contains("/")) {
      return InetAddress.getByName(host.substring(host.indexOf('/') + 1));
    }

    return InetAddress.getByName(host);
  }
Converts the string host to an instance of {@code InetAddress}. Returns null if the string is
empty. Any leading slashes on host will be ignored.

@param host The string version the InetAddress

@return The host converted to InetAddress instance

@throws UnknownHostException if no IP address for the {@code host} could be found
geode-core/src/main/java/org/apache/geode/admin/internal/InetAddressUtils.java