class UrlAccessLogMessageAssembler {

    public String assembleMessage(HttpServletRequest request, String message) {
        String ip = request.getRemoteAddr();
        String host = ipAddressResolver.resolveToHostName(ip);
        return String.format(INFO_TEMPLATE, request.getRequestURI(), host, message);
    }

}