} catch (XMPPException e) {
if (originalException != null) {
// use the original connection exception as legacy SSL should only
// be a fallback
LOGGER.warning("Retrying with legacy SSL failed: " + e.getMessage());
throw new SmackException("Exception of original (without legacy SSL) connection attempt", originalException);
} else {
throw new SmackException(e);
}
} catch (SmackException e) {
LOGGER.warning(ExceptionHelper.dump(e));
} catch (IOException e) {
LOGGER.warning(ExceptionHelper.dump(e));