// Ignore if an exception and a redirect happened in between (e.g.
// RestartResponseAtInterceptPageException)
IRequestHandler activeHandler = getRequestCycle().getActiveRequestHandler();
if (activeHandler instanceof IPageRequestHandler)
{
IPageRequestHandler h = (IPageRequestHandler)activeHandler;
if (h.getPage() == this)
{
validateHeaders();
}
}
}