* forward has been done)
* @throws ServletException
* @throws IOException
*/
protected boolean dispatch(HttpServletRequest request, HttpServletResponse response, String path, boolean doInclude) throws ServletException, IOException {
PanelsSupport support = PanelsSupport.getInstance(request);
Locale locale = I18nSupport.getInstance(request).getLocale(request);
PanelConfig panel = support.findPanelConfig(path, locale);
if (panel != null) {
if (log.isTraceEnabled()) {
log.trace("panel " + panel.getName());
}
String template = panel.findTemplate(locale);
if (template == null) {
throw new ServletException("Cannot find template for panel " + panel.getName());
}
PanelsContext context = support.getOrCreateContext(request, locale);
context.push(panel);
try {
if (doInclude) {