public Object newWrapper(Class<?> typeClass, Object delegate) {
if (delegate instanceof ResponseStateManager) {
return new MvcResponseStateManager((ResponseStateManager) delegate, this.facesViewStateHandler);
}
if (delegate instanceof ViewHandler) {
return new MvcViewHandler((ViewHandler) delegate, this.destinationViewResolver);
}
if (ConfigurableNavigationHandler.class.equals(typeClass)) {
return new MvcNavigationHandler((ConfigurableNavigationHandler) delegate, this.navigationOutcomeResolver);
}
if (ActionListener.class.equals(typeClass)) {