code: private static String createMessage(final ThresholdAlert alert, final String template) {
          // TODO: message should be encoded to apropriate encoding
          //return alert.getThreshold().getName() + ": " + alert.getOldStatus() + "->" + alert.getNewStatus();
          String message;
          if(!StringUtils.isEmpty(template)) {
              ThresholdAlertTemplate thresholdAlertTemplate = new ThresholdAlertTemplate(alert);
              message = thresholdAlertTemplate.process(template);
          } else {
              message = ThresholdAlertConverter.toPlainText(alert);
          }
          return message;
      }
docs: Create SMS message.
  
  @param alert {@link net.anotheria.moskito.core.threshold.alerts.ThresholdAlert}
  @param template {@link net.anotheria.moskito.extensions.notificationproviders.BulkSMSNotificationProvider#smsTemplate}
  @return SMS