public void afterPhase(final PhaseEvent event)
{
if (PhaseId.RESTORE_VIEW.equals(event.getPhaseId()))
{
PrettyContext prettyContext = PrettyContext.getCurrentInstance(event.getFacesContext());
boolean dynaviewViewDetermination = prettyContext.shouldProcessDynaview();
/*
* Validate and inject path/query parameter if one of these conditions is met:
* - The 'responseComplete' flag is not set (normal mapped request)
* - we must evaluate the view id for a dynaview request (responseComplete is set!!!)