HashMap<Host, String> hostnames = new HashMap<>();
for (Host h : Host.values()) {
hostnames.put(h, conf.getProperty("name." + h.getConfigName(), h.getHostDefaultPrefix() + "." + suffix));
}
ServerConstants.hostnames = Collections.unmodifiableMap(hostnames);
HashMap<Host, String> hostnames = new HashMap<>();
for (Host h : Host.values()) {
hostnames.put(h, conf.getProperty("name." + h.getConfigName(), h.getHostDefaultPrefix() + "." + suffix));
}
ServerConstants.hostnames = Collections.unmodifiableMap(hostnames);