// This can either be a renderURL or an external URL (optionally containing a future renderURL as query parameter
location = response.encodeRedirectURL(responseContext.getResponseURL());
}
finally
{
responseContext.release();
}
redirect(request, response, location);
debugWithName("Portlet action done for: " + portletWindow.getPortletDefinition().getPortletName());
}