else {
Lifecycle weldHelperLifecycle = new WeldHelperLifecycle();
PhaseEvent restoreViewPhaseEvent = new PhaseEvent(facesContext, PhaseId.RESTORE_VIEW,
weldHelperLifecycle);
RenderRequest renderRequest = (RenderRequest) request;
HttpServletRequestAdapter httpServletRequestAdapter = new HttpServletRequestAdapterImpl(
renderRequest);
WeldHelperRenderRequest weldHelperRenderRequest = new WeldHelperRenderRequest(renderRequest,
httpServletRequestAdapter);
externalContext.setRequest(weldHelperRenderRequest);
weldPhaseListener.beforePhase(restoreViewPhaseEvent);