}
@Provides @Singleton
ForwardingServlet provideForwardingServlet(@Port Integer port, ServletContext context)
throws ServletException {
ForwardingServlet servlet = new ForwardingServlet("localhost", port);
// Need to init the ForwardingServlet because it is a ProxyServlet.Transparent, a class
// that relies upon ServletContext#log().
servlet.init(new SimpleServletConfig(
"forward", context, ImmutableMap.<String, String>of()));
return servlet;
}