throw new Exception(response.getCause());
}
private void handleSecurityResponse(SecurityResponse response) throws Exception {
if (response instanceof SecurityErrorResponse) {
SecurityErrorResponse securityErrorResponse = (SecurityErrorResponse) response;
throw new Exception("SecurityErrorResponse Returned while trying to process portlet action. ",
securityErrorResponse.getThrowable());
} else {
throw new Exception("Security Response of type " + response.getClass()
+ " encountered while trying to process portlet action.");
}
}