else if (e instanceof UnavailableException)
{
UnavailableException ue = (UnavailableException)e;
if (ue.isPermanent())
{
return new UnavailableResponse();
}
else
{
return new UnavailableResponse(ue.getUnavailableSeconds());
}
}
else
{
// The exception is either a PortletException, an IOException or a RuntimeException