Original version from Russ.
Interim version using HttpServletUtils.
Inject configuration and use MacroResolver.