// FIXME M1 consider rename of internal package
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)) {