/**
  * Send an alert informing that there are N unsuccessful attempts to process a document.
  *
  * @param doc The document that failed in processing.
  * @param count The number of unsuccessful attempts made so far.
  */
 public void alertTooManyAttempts(TransactionDoc doc, int count) {
   AlertUtil.getInstance()
       .sendAlert(
           IAlertKeys.TOO_MANY_FAILED_ATTEMPTS,
           doc.getTracingId(),
           doc.getDirection(),
           doc.getBizEntId(),
           doc.getPartnerId(),
           doc.getDocContent(),
           doc.getMessageID(),
           count);
 }