log.error("The portlet threw an exception", e);
//
if (e instanceof PortletSecurityException)
{
return new SecurityErrorResponse(e);
}
else if (e instanceof UnavailableException)
{
UnavailableException ue = (UnavailableException)e;
if (ue.isPermanent())