if (executionCount >= CommunicationFactory.getInstance()
.getMaxretries()) {
// Do not retry if over max retry count
return false;
}
final ExceptionHandler handler = CommunicationFactory.getInstance()
.getExceptionHandlers().get(exception.getClass().getName());
if (null != handler) {
return handler.handle(method, exception, executionCount);
}
if (!method.isRequestSent()) {
// Retry if the request has not been sent fully or
// if it's OK to retry methods that have been sent
return true;