Throwable cause = exception.getCause();
// Properly handle possible server overload...
if (cause instanceof RetryAfterException) {
throw (RetryAfterException) cause;
}
throw new InstallationFailedException("Installation of deployment package failed!", exception);
}
}