{
// target window doesn't exists anymore or the target page is not accessible (anymore)
// remove any navigational state for the window
state.removeState(window);
}
state.sync(request);
if (redirect)
{
// target page doesn't contain (anymore) the targeted windowOfAction
// this can also occur when a session is expired and the target page isn't accessible for the anonymous user
// Redirect the user back to the target page (with possibly retaining the other windows navigational state).