*/
@Override
public void sendRedirect(String location) throws IOException
{
Bean<Conversation> bean = ManagerImpl.getManager().resolveByType(Conversation.class, new CurrentLiteral()).iterator().next();
Conversation conversation = ManagerImpl.getManager().getInstance(bean);
String path = location;
if (conversation != null)
{
if (conversation.isLongRunning())
{
// Find JSFish view od of the redirection
path = JSFUtil.getRedirectViewId(location);
path = JSFUtil.getViewHandler().getActionURL(JSFUtil.getCurrentFacesContext(), path);
path = JSFUtil.getExternalContext().encodeActionURL(path + "?cid=" + conversation.getId());
}
}
super.sendRedirect(path);