String host = url.getHost();
if (host == null) throw new IOException("charding - bad url, host empty: " + sku);
try {
MessageDigest digest = MessageDigest.getInstance("MD5");
digest.update(host.getBytes(charsetUTF8));
byte[] md5 = digest.digest();
return (0xff & md5[0]) % this.dimension;
} catch (NoSuchAlgorithmException e) {
throw new IOException("charding - no md5 available: " + e.getMessage());
}
} catch (MalformedURLException e) {