if (viewHandlers.contains(viewHandlerClass) &&
!viewHandlerClass.equalsIgnoreCase("org.ajax4jsf.application.AjaxViewHandler")) {
return;
}
AjaxViewHandler ajaxViewHandler = viewHandler instanceof AjaxViewHandler
? (AjaxViewHandler) viewHandler
: new AjaxViewHandler(viewHandler);
wrapped.setViewHandler(ajaxViewHandler);
viewHandlers.add(viewHandlerClass);
}