if (ex instanceof SocketTimeoutException)
{
log.debug("Got SocketTimeoutException, exiting", ex);
String message = "Socket timed out. Waited " + socketWrapper.getTimeout() +
" milliseconds for response while calling on " + getLocator();
throw new InvocationFailureException(message, ex);
}
if (ex instanceof InterruptedException)
{
log.debug(this, ex);
throw new RuntimeException(ex);
}
throw new InvocationFailureException("Unable to perform invocation", ex);
}