public static HostInfo buildFromEndpoint(final String endPoint) {
        if (Utils.isBlank(endPoint)) {
            return null;
        }

        final String host = getHost(endPoint);
        final Integer port = getPort(endPoint);

        if (host == null || port == null) {
            throw new ConfigException(
                String.format("Error parsing host address %s. Expected format host:port.", endPoint)
            );
        }
        return new HostInfo(host, port);
    }
@throws ConfigException if the host or port cannot be parsed from the given endpoint string
@return a new HostInfo or null if endPoint is null or has no characters
streams/src/main/java/org/apache/kafka/streams/state/HostInfo.java