//trigger init - might lead to a redirect -> response-complete
String windowId = clientWindow.getWindowId(facesContext);
if (!facesContext.getResponseComplete() && !"default".equals(windowId))
{
facesContext.getExternalContext().setClientWindow(new ClientWindowAdapter(clientWindow));
}
}
}