message.getHeaderValue("Host").ifPresent(host -> {
if (host.contains(":")) {
String[] hostParts = host.split(":");
address = InetAddress.getByName(hostParts[0]);
try {
port = Integer.parseInt(hostParts[1]);
} catch (NumberFormatException ex) {
//ignore
//TODO do not ignore
}
}
});