}
}
} else {
PortletContainerException pcException;
if (pir instanceof ErrorResponse) {
ErrorResponse errorResponse = (ErrorResponse) pir;
pcException = new PortletContainerException(errorResponse.getMessage(), errorResponse.getCause());
} else {
pcException = new PortletContainerException("Unknown invocation response type [" + pir.getClass()
+ "]. Expected a FragmentResponse or an ErrorResponse");
}
//
PortletExceptionHandleService portletExceptionService = getApplicationComponent(PortletExceptionHandleService.class);