class IpAddressResolver {

    public String resolveToHostName(final String ip) {
        String host = "";
        try {
            InetAddress address = inetAddressFactory.createByName(ip);
            host = address.getHostName();
        } catch (UnknownHostException e) {
            logger.debug(DEBUG_MESSAGE + host, e);
            host = String.format(UNKNOWN_HOST_TEMPLATE, ip);
        }
        return host;
    }

}