msg.setFailureCause(FailureCauses.BAD_FORMAT);
Logger.getInstance().logError("Message Format not accepted.", e, getGatewayId());
return false;
} catch (ResponseTimeoutException e) {
Logger.getInstance().logError("Message could not be sent.", e, getGatewayId());
throw new TimeoutException(e.getMessage());
} catch (InvalidResponseException e) {
Logger.getInstance().logError("Message could not be sent.", e, getGatewayId());
throw new IOException("InvalidResponseException: ", e);
} catch (NegativeResponseException e) {
Logger.getInstance().logError("Message could not be sent.", e, getGatewayId());