LoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, "Connecting to Watson IoT Platform failed - " +
"one or more connection parameters are wrong !!!", e);
throw e;
} catch (MqttException e) {
Throwable t = e.getCause();
<BUG>if(!autoRetry) {
LoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, "Connecting to Watson IoT Platform failed", e);</BUG>
throw e;
}
e.printStackTrace();

LoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, "Connecting to Watson IoT Platform failed - " +
"one or more connection parameters are wrong !!!", e);
throw e;
} catch (MqttException e) {
Throwable t = e.getCause();
if(connectAttempts > numberOfRetryAttempts) {
LoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, "Connecting to Watson IoT Platform failed", e);
throw e;
}
e.printStackTrace();
