class HeloNameProvider {

    public String getHeloName() {
        if (heloName == null) {
            // TODO: Maybe we should better just lookup the hostname via dns
            try {
                return domainList.getDefaultDomain().name();
            } catch (DomainListException e) {
                LOGGER.warn("Unable to access DomainList", e);
                return LOCALHOST;
            }
        } else {
            return heloName;
        }
    }

    public  HeloNameProvider(String heloName, DomainList domainList);

}