@Override
public Object execute(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
{
final HttpServletRequest request = req;
ServletContainerFactory.getServletContainer().visit(new ServletContainerVisitor()
{
@Override
public void accept(WebApp webApp)
{
if (webApp.getServletContext().equals(target))
{
webApp.fireRequestInitialized(request);
}
}
});
ServletException servletException = null;
IOException ioException = null;
Object result = null;
try
{
result = super.execute(req, resp);
}
catch (IOException e)
{
ioException = e;
}
catch (ServletException e)
{
servletException = e;
}
ServletContainerFactory.getServletContainer().visit(new ServletContainerVisitor()
{
@Override
public void accept(WebApp webApp)
{
if (webApp.getServletContext().equals(target))